@@ -36,53 +36,54 @@ 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
- python : ' 3.12-dev '
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
- - name : mypyc runtime tests with py38 -macos
75
- python : ' 3.8.17 '
74
+ - name : mypyc runtime tests with py39 -macos
75
+ python : ' 3.9.18 '
76
76
arch : x64
77
- os : macos-latest
77
+ # TODO: macos-13 is the last one to support Python 3.9, change it to macos-latest when updating the Python version
78
+ os : macos-13
78
79
toxenv : py
79
- 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"
80
81
- name : mypyc runtime tests with py38-debug-build-ubuntu
81
82
python : ' 3.8.17'
82
83
arch : x64
83
84
os : ubuntu-latest
84
85
toxenv : py
85
- 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"
86
87
debug_build : true
87
88
88
89
- name : Type check our own code (py38-ubuntu)
@@ -119,8 +120,8 @@ jobs:
119
120
# Pytest
120
121
PYTEST_ADDOPTS : --color=yes
121
122
steps :
122
- - uses : actions/checkout@v3
123
- - uses : actions/setup-python@v4
123
+ - uses : actions/checkout@v4
124
+ - uses : actions/setup-python@v5
124
125
with :
125
126
python-version : ${{ matrix.python }}
126
127
architecture : ${{ matrix.arch }}
@@ -133,14 +134,16 @@ jobs:
133
134
./misc/build-debug-python.sh $PYTHONVERSION $PYTHONDIR $VENV
134
135
source $VENV/bin/activate
135
136
- name : Install tox
136
- run : pip install --upgrade ' setuptools!=50' tox==4.11.0
137
+ run : pip install setuptools==68.2.2 tox==4.11.0
137
138
- name : Compiled with mypyc
138
139
if : ${{ matrix.test_mypyc }}
139
140
run : |
140
141
pip install -r test-requirements.txt
141
142
CC=clang MYPYC_OPT_LEVEL=0 MYPY_USE_MYPYC=1 pip install -e .
142
143
- name : Setup tox environment
143
- 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)))'
144
147
- name : Test
145
148
run : tox run -e ${{ matrix.toxenv }} --skip-pkg-install -- ${{ matrix.tox_extra_args }}
146
149
@@ -162,7 +165,7 @@ jobs:
162
165
CXX : i686-linux-gnu-g++
163
166
CC : i686-linux-gnu-gcc
164
167
steps :
165
- - uses : actions/checkout@v3
168
+ - uses : actions/checkout@v4
166
169
- name : Install 32-bit build dependencies
167
170
run : |
168
171
sudo dpkg --add-architecture i386 && \
@@ -185,8 +188,8 @@ jobs:
185
188
default : 3.11.1
186
189
command : python -c "import platform; print(f'{platform.architecture()=} {platform.machine()=}');"
187
190
- name : Install tox
188
- run : pip install --upgrade ' setuptools!=50' tox==4.11.0
191
+ run : pip install setuptools==68.2.2 tox==4.11.0
189
192
- name : Setup tox environment
190
193
run : tox run -e py --notest
191
194
- name : Test
192
- 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