| name: Check CI Scripts |
| |
| permissions: |
| contents: read |
| |
| on: |
| push: |
| branches: |
| - main |
| paths: |
| - '.ci/**' |
| - '.github/workflows/check-ci.yml' |
| pull_request: |
| paths: |
| - '.ci/**' |
| - '.github/workflows/check-ci.yml' |
| |
| jobs: |
| test-python: |
| name: "Check Python Tests" |
| runs-on: ubuntu-24.04 |
| if: github.repository == 'llvm/llvm-project' |
| steps: |
| - name: Fetch LLVM sources |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 |
| with: |
| sparse-checkout: .ci |
| - name: Setup Python |
| uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0 |
| with: |
| python-version: 3.14 |
| cache: 'pip' |
| - name: Install Python Dependencies |
| run: | |
| pip3 install -r .ci/all_requirements.txt |
| pip3 install -r .ci/metrics/requirements.lock.txt |
| pip3 install pytest==8.4.1 |
| - name: Run Tests |
| working-directory: .ci |
| run: pytest |