@@ -36,39 +36,39 @@ jobs:
36
36
arch : x64
37
37
os : ubuntu-latest
38
38
toxenv : py
39
- tox_extra_args : " -n 2 "
39
+ tox_extra_args : " -n 4 "
40
40
test_mypyc : true
41
41
- name : Test suite with py38-windows-64
42
42
python : ' 3.8'
43
43
arch : x64
44
44
os : windows-latest
45
45
toxenv : py38
46
- tox_extra_args : " -n 2 "
46
+ tox_extra_args : " -n 4 "
47
47
- name : Test suite with py39-ubuntu
48
48
python : ' 3.9'
49
49
arch : x64
50
50
os : ubuntu-latest
51
51
toxenv : py
52
- tox_extra_args : " -n 2 "
52
+ tox_extra_args : " -n 4 "
53
53
- name : Test suite with py310-ubuntu
54
54
python : ' 3.10'
55
55
arch : x64
56
56
os : ubuntu-latest
57
57
toxenv : py
58
- tox_extra_args : " -n 2 "
58
+ tox_extra_args : " -n 4 "
59
59
- name : Test suite with py311-ubuntu, mypyc-compiled
60
60
python : ' 3.11'
61
61
arch : x64
62
62
os : ubuntu-latest
63
63
toxenv : py
64
- tox_extra_args : " -n 2 "
64
+ tox_extra_args : " -n 4 "
65
65
test_mypyc : true
66
66
- name : Test suite with py312-ubuntu, mypyc-compiled
67
67
python : ' 3.12'
68
68
arch : x64
69
69
os : ubuntu-latest
70
70
toxenv : py
71
- tox_extra_args : " -n 2 "
71
+ tox_extra_args : " -n 4 "
72
72
test_mypyc : true
73
73
74
74
- name : mypyc runtime tests with py39-macos
@@ -77,13 +77,13 @@ jobs:
77
77
# TODO: macos-13 is the last one to support Python 3.9, change it to macos-latest when updating the Python version
78
78
os : macos-13
79
79
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"
81
81
- name : mypyc runtime tests with py38-debug-build-ubuntu
82
82
python : ' 3.8.17'
83
83
arch : x64
84
84
os : ubuntu-latest
85
85
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"
87
87
debug_build : true
88
88
89
89
- name : Type check our own code (py38-ubuntu)
@@ -141,7 +141,9 @@ jobs:
141
141
pip install -r test-requirements.txt
142
142
CC=clang MYPYC_OPT_LEVEL=0 MYPY_USE_MYPYC=1 pip install -e .
143
143
- 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)))'
145
147
- name : Test
146
148
run : tox run -e ${{ matrix.toxenv }} --skip-pkg-install -- ${{ matrix.tox_extra_args }}
147
149
@@ -190,4 +192,4 @@ jobs:
190
192
- name : Setup tox environment
191
193
run : tox run -e py --notest
192
194
- 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