-
Notifications
You must be signed in to change notification settings - Fork 128
50 lines (47 loc) · 1.61 KB
/
ci-python-unit.yml
File metadata and controls
50 lines (47 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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/