| name: CI Python Unit Tests | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| run_tests: | |
| name: Check CI Python Unit Tests | |
| if: github.repository_owner == 'llvm' | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: '3.14' | |
| cache: 'pip' | |
| - name: Test Premerge Buildbot | |
| run: | | |
| python3 -m venv venv-premerge-buildbot | |
| source venv-premerge-buildbot/bin/activate | |
| pip3 install pytest==8.4.1 | |
| pip3 install -r premerge/buildbot/requirements.lock.txt | |
| pytest zorg/buildbot/builders/annotated/premerge/dispatch_job_test.py | |
| - name: Test Premerge Advisor | |
| run: | | |
| python3 -m venv venv-premerge-advisor | |
| source venv-premerge-advisor/bin/activate | |
| pip3 install pytest==8.4.1 | |
| pip3 install -r premerge/advisor/requirements.lock.txt | |
| pytest premerge/advisor/ | |
| - name: Test Premerge Ops Container | |
| run: | | |
| python3 -m venv venv-premerge-ops-container | |
| source venv-premerge-ops-container/bin/activate | |
| pip3 install pytest==8.4.1 | |
| pip3 install -r premerge/ops-container/requirements.lock.txt | |
| pytest premerge/ops-container/ | |
| - name: Test BazelBot | |
| run: | | |
| python3 -m venv venv-bazelbot | |
| source venv-bazelbot/bin/activate | |
| pip3 install pytest==8.4.1 | |
| pip3 install -r google-bazel-bot/bazel-bot/requirements.lock.txt | |
| pytest google-bazel-bot/bazel-bot/ |