[CI] Split common script functionality into a separate library #664
Workflow file for this run
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: 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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| - uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.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/ |