8000 Skip interactive backends in 3.14 tests · matplotlib/matplotlib@ef09f4e · GitHub
[go: up one dir, main page]

Skip to content

Commit ef09f4e

Browse files
committed
Skip interactive backends in 3.14 tests
The dependency wheels are not available for 3.14, and the tkagg tests fail by running into timeouts. Use the same if statement already used for 3.13t. Also skip interactive-backend tests on the 3.14 pre-release.
1 parent 4b9c146 commit ef09f4e

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/tests.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ jobs:
7676
python-version: '3.13t'
7777
# https://github.com/matplotlib/matplotlib/issues/29844
7878
pygobject-ver: '<3.52.0'
79+
skip-interactive-backend-builds: true
7980
- os: ubuntu-24.04
8081
python-version: '3.12'
8182
- os: macos-13 # This runner is on Intel chips.
@@ -92,6 +93,7 @@ jobs:
9293
- name-suffix: "(Python pre-release)"
9394
os: ubuntu-24.04
9495
python-version: '3.14-dev'
96+
skip-interactive-backend-builds: true
9597

9698
steps:
9799
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -249,7 +251,7 @@ jobs:
249251
# Sphinx is needed to run sphinxext tests
250252
python -m pip install --upgrade sphinx!=6.1.2
251253 8000
252-
if [[ "${{ matrix.python-version }}" != '3.13t' ]]; then
254+
if [[ "${{ matrix.skip-interactive-backend-builds }}" != "true" ]]; then
253255
# GUI toolkits are pip-installable only for some versions of Python
254256
# so don't fail if we can't install them. Make it easier to check
255257
# whether the install was successful by trying to import the toolkit
@@ -300,7 +302,7 @@ jobs:
300302
echo 'wxPython is available' ||
301303
echo 'wxPython is not available'
302304
303-
fi # Skip backends on Python 3.13t.
305+
fi # skip-interactive-backend-builds
304306
305307
- name: Install the nightly dependencies
306308
# Only install the nightly dependencies during the scheduled event
@@ -350,7 +352,12 @@ jobs:
350352
if [[ "${{ matrix.python-version }}" == '3.13t' ]]; then
351353
export PYTHON_GIL=0
352354
fi
353-
pytest -rfEsXR -n auto \
355+
if "${{ contains(matrix.name-suffix, 'pre-release') }}"; then
356+
FLAGS=(-k 'not test_backends_interactive')
357+
else
358+
FLAGS=()
359+
fi
360+
pytest -rfEsXR -n auto "${FLAGS[@]}" \
354361
--maxfail=50 --timeout=300 --durations=25 \
355362
--cov-report=xml --cov=lib --log-level=DEBUG --color=yes
356363

0 commit comments

Comments
 (0)
0