91
91
pyqt6-ver : ' !=6.6.0'
92
92
# https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-2346
93
93
pyside6-ver : ' !=6.5.1'
94
+ - name-suffix : " Free-threaded"
95
+ os : ubuntu-22.04
96
+ python-version : ' 3.13t'
97
+ # https://www.riverbankcomputing.com/pipermail/pyqt/2023-November/045606.html
98
+ pyqt6-ver : ' !=6.6.0'
99
+ # https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-2346
100
+ pyside6-ver : ' !=6.5.1'
94
101
- os : macos-12 # This runner is on Intel chips.
95
102
python-version : ' 3.10'
96
103
# https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-2346
@@ -111,10 +118,18 @@ jobs:
111
118
112
119
- name : Set up Python ${{ matrix.python-version }}
113
120
uses : actions/setup-python@v5
121
+ if : matrix.python-version != '3.13t'
114
122
with :
115
123
python-version : ${{ matrix.python-version }}
116
124
allow-prereleases : true
117
125
126
+ - name : Set up Python ${{ matrix.python-version }}
127
+ uses : deadsnakes/action@6c8b9b82fe0b4344f4b98f2775fcc395df45e494 # v3.1.0
128
+ if : matrix.python-version == '3.13t'
129
+ with :
130
+ python-version : ' 3.13'
131
+ nogil : true
132
+
118
133
- name : Install OS dependencies
119
134
run : |
120
135
case "${{ runner.os }}" in
@@ -160,6 +175,11 @@ jobs:
160
175
texlive-luatex \
161
176
texlive-pictures \
162
177
texlive-xetex
178
+ if [[ "${{ matrix.python-version }}" = '3.13t' ]]; then
179
+ # TODO: Remove this once setup-python supports nogil distributions.
180
+ sudo apt-get install -yy --no-install-recommends \
181
+ python3.13-tk-nogil
182
+ fi
163
183
if [[ "${{ matrix.os }}" = ubuntu-20.04 ]]; then
164
184
sudo apt-get install -yy --no-install-recommends libopengl0
165
185
else # ubuntu-22.04
@@ -216,6 +236,15 @@ jobs:
216
236
4-${{ runner.os }}-py${{ matrix.python-version }}-mpl-${{ github.ref }}-
217
237
4-${{ runner.os }}-py${{ matrix.python-version }}-mpl-
218
238
239
+ - name : Install the nightly dependencies
240
+ if : matrix.python-version == '3.13t'
241
+ run : |
242
+ python -m pip install pytz tzdata python-dateutil # Must be installed for Pandas.
243
+ python -m pip install \
244
+ --pre \
245
+ --index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple \
246
+ --upgrade --only-binary=:all: numpy pandas pillow contourpy
247
+
219
248
- name : Install Python dependencies
220
249
run : |
221
250
# Upgrade pip and setuptools and wheel to get as clean an install as
@@ -241,6 +270,7 @@ jobs:
241
270
# Sphinx is needed to run sphinxext tests
242
271
python -m pip install --upgrade sphinx!=6.1.2
243
272
273
+ if [[ "${{ matrix.python-version }}" != '3.13t' ]]; then
244
274
# GUI toolkits are pip-installable only for some versions of Python
245
275
# so don't fail if we can't install them. Make it easier to check
246
276
# whether the install was successful by trying to import the toolkit
@@ -286,6 +316,8 @@ jobs:
286
316
echo 'wxPython is available' ||
287
317
echo 'wxPython is not available'
288
318
319
+ fi # Skip backends on Python 3.13t.
320
+
289
321
- name : Install the nightly dependencies
290
322
# Only install the nightly dependencies during the scheduled event
291
323
if : github.event_name == 'schedule' && matrix.name-suffix != '(Minimum Versions)'
@@ -324,6 +356,9 @@ jobs:
324
356
325
357
- name : Run pytest
326
358
run : |
359
+ if [[ "${{ matrix.python-version }}" == '3.13t' ]]; then
360
+ export PYTHON_GIL=0
361
+ fi
327
362
pytest -rfEsXR -n auto \
328
363
--maxfail=50 --timeout=300 --durations=25 \
329
364
--cov-report=xml --cov=lib --log-level=DEBUG --color=yes
0 commit comments