10
10
strategy :
11
11
fail-fast : false
12
12
matrix :
13
- # os: [ubuntu-24.04, ubuntu-24.04-arm, windows-2019, macos-13, macos-14]
14
- os : [macos-14]
13
+ os : [ubuntu-24.04, ubuntu-24.04-arm, windows-2019, macos-13, macos-14]
15
14
16
15
steps :
17
16
- uses : actions/checkout@v4
@@ -87,15 +86,13 @@ jobs:
87
86
os : [ubuntu-24.04, ubuntu-24.04-arm, windows-2019, macos-13, macos-14]
88
87
# This list to be kept in sync with cibuildwheel config
89
88
# and python-requires in pyproject.toml.
90
- #
91
- # It should be possible to add '3.13t' here when a newer version of
92
- # actions/setup-python is available. As of v5.4.0 it cannote be used
93
- # although a fix has been merged so presumably v5.5.0 or v.5.4.1 will
94
- # provide this...
95
- # https://github.com/actions/setup-python/pull/973
96
89
python-version : ['3.11', '3.12', '3.13', '3.13t'] # , 'pypy3.10']
97
90
98
91
steps :
92
+ # Quansight-labs/setup-python is needed for 3.13t until a new version of
93
+ # actions/setup-python (>5.4.0) is released.
94
+ #
95
+ # https://github.com/actions/setup-python/pull/973
99
96
- uses : Quansight-Labs/setup-python@v5
100
97
with :
101
98
python-version : ${{ matrix.python-version }}
@@ -115,43 +112,6 @@ jobs:
115
112
116
113
- run : python -m flint.test --verbose
117
114
118
- test_wheels_freethreaded_ubuntu :
119
- # XXX: Remove this job and add to the matrix above when a newer version of
120
- # actions/setup-python is released.
121
- needs : build_wheels
122
- name : Test 3.13t wheel on Ubuntu
123
- runs-on : ubuntu-24.04
124
-
125
- steps :
126
- # https://github.com/actions/setup-python/issues/771
127
- # deadsnakes only works for Ubuntu...
128
- -
uses :
deadsnakes/[email protected]
129
- with :
130
- python-version : 3.13
131
- nogil : true
132
- - run : |
133
- python --version --version
134
- which python
135
- python -c "import sysconfig; print(sysconfig.get_config_var('Py_GIL_DISABLED'))"
136
- python -c "import sys; print(sys._is_gil_enabled())"
137
-
138
- - uses : actions/download-artifact@v4
139
- with :
140
- name : wheels-${{ matrix.os }}
141
- path : wheelhouse
142
-
143
- - run : pip install --no-index --find-links wheelhouse python_flint
144
-
145
- # Check if the GIL is disabled in the free-threading build after import.
146
- - run : |
147
- python --version --version
148
- which python
149
- python -c "import sysconfig; print(sysconfig.get_config_var('Py_GIL_DISABLED'))"
150
- python -c "import sys; print(getattr(sys, '_is_gil_enabled', lambda: True)())"
151
- python -c "import sys; import flint; print(getattr(sys, '_is_gil_enabled', lambda: True)())"
152
-
153
- - run : python -m flint.test --verbose
154
-
155
115
# On new enough Ubuntu we can build against the system deb.
156
116
test_pip_flint_deb :
157
117
name : Build on ${{ matrix.os }}
@@ -280,37 +240,6 @@ jobs:
280
240
- run : pip install -r requirements-dev.txt
281
241
- run : bin/coverage.sh
282
242
283
- # On new enough Ubuntu we can build against the system deb.
284
- test_freethreaded :
285
- name : Free-threaded ${{ matrix.python-version }} on ${{ matrix.os }}
286
- runs-on : ${{ matrix.os }}
287
- strategy :
288
- fail-fast : false
289
- matrix :
290
- os : [ubuntu-24.04]
291
- python-version : ['3.13', '3.14-dev']
292
- steps :
293
- - uses : actions/checkout@v4
294
- # Can't use actions/setup-python
295
- # https://github.com/actions/setup-python/issues/771
296
- # deadsnakes only works for Ubuntu...
297
- -
uses :
deadsnakes/[email protected]
298
- with :
299
- python-version : ${{ matrix.python-version }}
300
- nogil : true
301
- - run : |
302
- python --version --version
303
- which python
304
- python -c "import sysconfig; print(sysconfig.get_config_var('Py_GIL_DISABLED'))"
305
- python -c "import sys; print(sys._is_gil_enabled())"
306
- - run : sudo apt-get update
307
- - run : sudo apt-get install libflint-dev
308
- # Need Cython master until 3.1 is released
309
- - run : pip install git+https://github.com/cython/cython.git@master
310
- - run : pip install -r requirements-dev.txt
311
- - run : pip install --no-build-isolation .
312
- - run : python -m flint.test --verbose
313
-
314
243
# Run SymPy test suite against python-flint master
315
244
test_sympy :
316
245
name : Test SymPy ${{ matrix.sympy-version }}
0 commit comments