Skip to content

Commit fb31409

Browse files
authored
1 parent cd895ce commit fb31409

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,39 +36,39 @@ jobs:
3636
arch: x64
3737
os: ubuntu-latest
3838
toxenv: py
39-
tox_extra_args: "-n 2"
39+
tox_extra_args: "-n 4"
4040
test_mypyc: true
4141
- name: Test suite with py38-windows-64
4242
python: '3.8'
4343
arch: x64
4444
os: windows-latest
4545
toxenv: py38
46-
tox_extra_args: "-n 2"
46+
tox_extra_args: "-n 4"
4747
- name: Test suite with py39-ubuntu
4848
python: '3.9'
4949
arch: x64
5050
os: ubuntu-latest
5151
toxenv: py
52-
tox_extra_args: "-n 2"
52+
tox_extra_args: "-n 4"
5353
- name: Test suite with py310-ubuntu
5454
python: '3.10'
5555
arch: x64
5656
os: ubuntu-latest
5757
toxenv: py
58-
tox_extra_args: "-n 2"
58+
tox_extra_args: "-n 4"
5959
- name: Test suite with py311-ubuntu, mypyc-compiled
6060
python: '3.11'
6161
arch: x64
6262
os: ubuntu-latest
6363
toxenv: py
64-
tox_extra_args: "-n 2"
64+
tox_extra_args: "-n 4"
6565
test_mypyc: true
6666
- name: Test suite with py312-ubuntu, mypyc-compiled
6767
python: '3.12'
6868
arch: x64
6969
os: ubuntu-latest
7070
toxenv: py
71-
tox_extra_args: "-n 2"
71+
tox_extra_args: "-n 4"
7272
test_mypyc: true
7373

7474
- name: mypyc runtime tests with py39-macos
@@ -77,13 +77,13 @@ jobs:
7777
# TODO: macos-13 is the last one to support Python 3.9, change it to macos-latest when updating the Python version
7878
os: macos-13
7979
toxenv: py
80-
tox_extra_args: "-n 2 mypyc/test/test_run.py mypyc/test/test_external.py"
80+
tox_extra_args: "-n 3 mypyc/test/test_run.py mypyc/test/test_external.py"
8181
- name: mypyc runtime tests with py38-debug-build-ubuntu
8282
python: '3.8.17'
8383
arch: x64
8484
os: ubuntu-latest
8585
toxenv: py
86-
tox_extra_args: "-n 2 mypyc/test/test_run.py mypyc/test/test_external.py"
86+
tox_extra_args: "-n 4 mypyc/test/test_run.py mypyc/test/test_external.py"
8787
debug_build: true
8888

8989
- name: Type check our own code (py38-ubuntu)
@@ -141,7 +141,9 @@ jobs:
141141
pip install -r test-requirements.txt
142142
CC=clang MYPYC_OPT_LEVEL=0 MYPY_USE_MYPYC=1 pip install -e .
143143
- name: Setup tox environment
144-
run: tox run -e ${{ matrix.toxenv }} --notest
144+
run: |
145+
tox run -e ${{ matrix.toxenv }} --notest
146+
python -c 'import os; print("os.cpu_count", os.cpu_count(), "os.sched_getaffinity", len(getattr(os, "sched_getaffinity", lambda *args: [])(0)))'
145147
- name: Test
146148
run: tox run -e ${{ matrix.toxenv }} --skip-pkg-install -- ${{ matrix.tox_extra_args }}
147149

@@ -190,4 +192,4 @@ jobs:
190192
- name: Setup tox environment
191193
run: tox run -e py --notest
192194
- name: Test
193-
run: tox run -e py --skip-pkg-install -- -n 2 mypyc/test/
195+
run: tox run -e py --skip-pkg-install -- -n 4 mypyc/test/

0 commit comments

Comments
 (0)