@@ -36,53 +36,54 @@ 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
67- python : ' 3.12-dev '
67+ 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
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 '
7676 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
7879 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"
8081 - name : mypyc runtime tests with py38-debug-build-ubuntu
8182 python : ' 3.8.17'
8283 arch : x64
8384 os : ubuntu-latest
8485 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"
8687 debug_build : true
8788
8889 - name : Type check our own code (py38-ubuntu)
@@ -119,8 +120,8 @@ jobs:
119120 # Pytest
120121 PYTEST_ADDOPTS : --color=yes
121122 steps :
122- - uses : actions/checkout@v3
123- - uses : actions/setup-python@v4
123+ - uses : actions/checkout@v4
124+ - uses : actions/setup-python@v5
124125 with :
125126 python-version : ${{ matrix.python }}
126127 architecture : ${{ matrix.arch }}
@@ -133,14 +134,16 @@ jobs:
133134 ./misc/build-debug-python.sh $PYTHONVERSION $PYTHONDIR $VENV
134135 source $VENV/bin/activate
135136 - 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
137138 - name : Compiled with mypyc
138139 if : ${{ matrix.test_mypyc }}
139140 run : |
140141 pip install -r test-requirements.txt
141142 CC=clang MYPYC_OPT_LEVEL=0 MYPY_USE_MYPYC=1 pip install -e .
142143 - 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)))'
144147 - name : Test
145148 run : tox run -e ${{ matrix.toxenv }} --skip-pkg-install -- ${{ matrix.tox_extra_args }}
146149
@@ -162,7 +165,7 @@ jobs:
162165 CXX : i686-linux-gnu-g++
163166 CC : i686-linux-gnu-gcc
164167 steps :
165- - uses : actions/checkout@v3
168+ - uses : actions/checkout@v4
166169 - name : Install 32-bit build dependencies
167170 run : |
168171 sudo dpkg --add-architecture i386 && \
@@ -185,8 +188,8 @@ jobs:
185188 default : 3.11.1
186189 command : python -c "import platform; print(f'{platform.architecture()=} {platform.machine()=}');"
187190 - 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
189192 - name : Setup tox environment
190193 run : tox run -e py --notest
191194 - 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