@@ -31,65 +31,50 @@ jobs:
3131 include :
3232 # Make sure to run mypyc compiled unit tests for both
3333 # the oldest and newest supported Python versions
34- - name : Test suite with py38-ubuntu, mypyc-compiled
35- python : ' 3.8'
36- arch : x64
37- os : ubuntu-latest
34+ - name : Test suite with py39-ubuntu, mypyc-compiled
35+ python : ' 3.9'
36+ os : ubuntu-24.04-arm
3837 toxenv : py
3938 tox_extra_args : " -n 4"
4039 test_mypyc : true
41- - name : Test suite with py38-windows-64
42- python : ' 3.8'
43- arch : x64
44- os : windows-latest
45- toxenv : py38
46- tox_extra_args : " -n 4"
47- - name : Test suite with py39-ubuntu
40+ - name : Test suite with py39-windows-64
4841 python : ' 3.9'
49- arch : x64
50- os : ubuntu-latest
51- toxenv : py
42+ os : windows-latest
43+ toxenv : py39
5244 tox_extra_args : " -n 4"
5345 - name : Test suite with py310-ubuntu
5446 python : ' 3.10'
55- arch : x64
56- os : ubuntu-latest
47+ os : ubuntu-24.04-arm
5748 toxenv : py
5849 tox_extra_args : " -n 4"
59- - name : Test suite with py311-ubuntu, mypyc-compiled
50+ - name : Test suite with py311-ubuntu
6051 python : ' 3.11'
61- arch : x64
62- os : ubuntu-latest
52+ os : ubuntu-24.04-arm
6353 toxenv : py
6454 tox_extra_args : " -n 4"
65- test_mypyc : true
6655 - name : Test suite with py312-ubuntu, mypyc-compiled
6756 python : ' 3.12'
68- arch : x64
69- os : ubuntu-latest
57+ os : ubuntu-24.04-arm
7058 toxenv : py
7159 tox_extra_args : " -n 4"
7260 test_mypyc : true
7361 - name : Test suite with py313-ubuntu, mypyc-compiled
7462 python : ' 3.13'
75- arch : x64
76- os : ubuntu-latest
63+ os : ubuntu-24.04-arm
7764 toxenv : py
7865 tox_extra_args : " -n 4"
7966 test_mypyc : true
8067
81- # - name: Test suite with py314-dev-ubuntu
82- # python: '3.14-dev'
83- # arch: x64
84- # os: ubuntu-latest
85- # toxenv: py
86- # tox_extra_args: "-n 4"
87- # allow_failure: true
88- # test_mypyc: true
68+ - name : Test suite with py314-dev-ubuntu
69+ python : ' 3.14-dev'
70+ os : ubuntu-24.04-arm
71+ toxenv : py
72+ tox_extra_args : " -n 4"
73+ # allow_failure: true
74+ test_mypyc : true
8975
9076 - name : mypyc runtime tests with py39-macos
91- python : ' 3.9.18'
92- arch : x64
77+ python : ' 3.9.21'
9378 # TODO: macos-13 is the last one to support Python 3.9, change it to macos-latest when updating the Python version
9479 os : macos-13
9580 toxenv : py
@@ -98,21 +83,18 @@ jobs:
9883 # - https://github.com/python/mypy/issues/17819
9984 # - https://github.com/python/mypy/pull/17822
10085 # - name: mypyc runtime tests with py38-debug-build-ubuntu
101- # python: '3.8.17'
102- # arch: x64
86+ # python: '3.9.21'
10387 # os: ubuntu-latest
10488 # toxenv: py
10589 # tox_extra_args: "-n 4 mypyc/test/test_run.py mypyc/test/test_external.py"
10690 # debug_build: true
10791
108- - name : Type check our own code (py38-ubuntu)
109- python : ' 3.8'
110- arch : x64
92+ - name : Type check our own code (py39-ubuntu)
93+ python : ' 3.9'
11194 os : ubuntu-latest
11295 toxenv : type
113- - name : Type check our own code (py38-windows-64)
114- python : ' 3.8'
115- arch : x64
96+ - name : Type check our own code (py39-windows-64)
97+ python : ' 3.9'
11698 os : windows-latest
11799 toxenv : type
118100
@@ -121,7 +103,6 @@ jobs:
121103 # to ensure the tox env works as expected
122104 - name : Formatting and code style with Black + ruff
123105 python : ' 3.10'
124- arch : x64
125106 os : ubuntu-latest
126107 toxenv : lint
127108
@@ -133,6 +114,8 @@ jobs:
133114 FORCE_COLOR : ${{ !(startsWith(matrix.os, 'windows-') && startsWith(matrix.toxenv, 'py')) && 1 || 0 }}
134115 # Tox
135116 PY_COLORS : 1
117+ # Python -- Disable argparse help colors (3.14+)
118+ PYTHON_COLORS : 0
136119 # Mypy (see https://github.com/python/mypy/issues/7771)
137120 TERM : xterm-color
138121 MYPY_FORCE_COLOR : 1
@@ -142,6 +125,8 @@ jobs:
142125
143126 steps :
144127 - uses : actions/checkout@v4
128+ with :
129+ persist-credentials : false
145130
146131 - name : Debug build
147132 if : ${{ matrix.debug_build }}
@@ -173,7 +158,6 @@ jobs:
173158 if : ${{ !(matrix.debug_build || endsWith(matrix.python, '-dev')) }}
174159 with :
175160 python-version : ${{ matrix.python }}
176- architecture : ${{ matrix.arch }}
177161
178162 - name : Install tox
179163 run : |
@@ -184,7 +168,7 @@ jobs:
184168 echo debug build; python -c 'import sysconfig; print(bool(sysconfig.get_config_var("Py_DEBUG")))'
185169 echo os.cpu_count; python -c 'import os; print(os.cpu_count())'
186170 echo os.sched_getaffinity; python -c 'import os; print(len(getattr(os, "sched_getaffinity", lambda *args: [])(0)))'
187- pip install setuptools==75.1.0 tox==4.21.2
171+ pip install setuptools==75.1.0 tox==4.26.0
188172
189173 - name : Compiled with mypyc
190174 if : ${{ matrix.test_mypyc }}
@@ -223,6 +207,8 @@ jobs:
223207 CC : i686-linux-gnu-gcc
224208 steps :
225209 - uses : actions/checkout@v4
210+ with :
211+ persist-credentials : false
226212 - name : Install 32-bit build dependencies
227213 run : |
228214 sudo dpkg --add-architecture i386 && \
@@ -245,7 +231,7 @@ jobs:
245231 default : 3.11.1
246232 command : python -c "import platform; print(f'{platform.architecture()=} {platform.machine()=}');"
247233 - name : Install tox
248- run : pip install setuptools==75.1.0 tox==4.21.2
234+ run : pip install setuptools==75.1.0 tox==4.26.0
249235 - name : Setup tox environment
250236 run : tox run -e py --notest
251237 - name : Test
0 commit comments