Skip to content

Commit 0e337b9

Browse files
[CI] Add workflow to run python unittests
To ensure that they do not regress if someone forgets to run them locally. This is similiar to the check-ci.yml worfklow in the monorepo. Pull Request: llvm#607
1 parent 0b6f51f commit 0e337b9

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI Python Unit Tests
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
pull_request:
11+
12+
jobs:
13+
run_tests:
14+
name: Check CI Python Unit Tests
15+
if: github.repository_owner == 'llvm'
16+
runs-on: ubuntu-24.04
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: actions/setup-python@v6
20+
with:
21+
python-version: '3.13'
22+
cache: 'pip'
23+
- name: Install Python Dependencies
24+
run: |
25+
pip3 install -r premerge/buildbot/requirements.lock.txt
26+
pip3 install -r premerge/advisor/requirements.lock.txt
27+
pip3 install pytest==8.4.1
28+
- name: Run Tests
29+
run: pytest premerge/ zorg/buildbot/builders/annotated/premerge/dispatch_job_test.py

0 commit comments

Comments
 (0)