[bazel] Port f9cd2ee119ff6bd59f48fd71617dc4fc981083c9 (#158691) #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| sparse-checkout: .ci | |
| - name: Setup Python | |
| uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0 | |
| with: | |
| python-version: 3.13 | |
| 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 |