41 lines · yaml
1name: Check CI Scripts2 3permissions:4 contents: read5 6on:7 push:8 branches:9 - main10 paths:11 - '.ci/**'12 - '.github/workflows/check-ci.yml'13 pull_request:14 paths:15 - '.ci/**'16 - '.github/workflows/check-ci.yml'17 18jobs:19 test-python:20 name: "Check Python Tests"21 runs-on: ubuntu-24.0422 if: github.repository == 'llvm/llvm-project'23 steps:24 - name: Fetch LLVM sources25 uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.026 with:27 sparse-checkout: .ci28 - name: Setup Python29 uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.030 with:31 python-version: 3.1432 cache: 'pip'33 - name: Install Python Dependencies34 run: |35 pip3 install -r .ci/all_requirements.txt36 pip3 install -r .ci/metrics/requirements.lock.txt37 pip3 install pytest==8.4.138 - name: Run Tests39 working-directory: .ci40 run: pytest41