Skip to content

Commit ea7afea

Browse files
committed
Add test requirements to Github Actions builds
1 parent 45146f1 commit ea7afea

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ jobs:
2525
run: .\PCbuild\build.bat -e -p Win32
2626
- name: Display build info
2727
run: .\python.bat -m test.pythoninfo
28+
- name: Install test dependencies
29+
run: |
30+
.\python.bat -m ensurepip --user
31+
.\python.bat -m pip install --user -r Misc/requirements-test.txt
2832
- name: Tests
2933
run: .\PCbuild\rt.bat -q -uall -u-cpu -rwW --slowest --timeout=1200 -j0
3034

@@ -37,6 +41,10 @@ jobs:
3741
run: .\PCbuild\build.bat -e -p x64
3842
- name: Display build info
3943
run: .\python.bat -m test.pythoninfo
44+
- name: Install test dependencies
45+
run: |
46+
.\python.bat -m ensurepip --user
47+
.\python.bat -m pip install --user -r Misc/requirements-test.txt
4048
- name: Tests
4149
run: .\PCbuild\rt.bat -x64 -q -uall -u-cpu -rwW --slowest --timeout=1200 -j0
4250

@@ -51,6 +59,10 @@ jobs:
5159
run: make -j4
5260
- name: Display build info
5361
run: make pythoninfo
62+
- name: Install test dependencies
63+
run: |
64+
./python.exe -m ensurepip --user
65+
./python.exe -m pip install --user -r Misc/requirements-test.txt
5466
- name: Tests
5567
run: make buildbottest TESTOPTS="-j4 -uall,-cpu"
5668

@@ -78,5 +90,9 @@ jobs:
7890
run: make -j4
7991
- name: Display build info
8092
run: make pythoninfo
93+
- name: Install test dependencies
94+
run: |
95+
./python -m ensurepip --user
96+
./python -m pip install --user -r Misc/requirements-test.txt
8197
- name: Tests
8298
run: xvfb-run make buildbottest TESTOPTS="-j4 -uall,-cpu"

.github/workflows/coverage.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
./python -m venv .venv
4949
source ./.venv/bin/activate
5050
python -m pip install -U coverage
51+
python -m pip install -r Misc/requirements-test.txt
5152
python -m test.pythoninfo
5253
- name: 'Tests with coverage'
5354
run: >

0 commit comments

Comments
 (0)