From 79e68c3d3d0deb37e9a1471facb3299f2f202434 Mon Sep 17 00:00:00 2001 From: Grzegorz Bokota Date: Wed, 25 Nov 2026 21:32:40 +0100 Subject: [PATCH] ci: Run PyQt5 test jobs against napari 0.9.2 napari 0.10.0 dropped PyQt5 support and the `pyqt5` extra caps napari<0.10.0, so PyQt5 jobs using the "latest" constraint files (which now pin napari==0.10.0) fail to resolve. Switch the PyQt5 base, main and coverage jobs to `napari92`, which uses the version denylist constraint and the napari_92 tox env. Pass `package/tests` as pytest args so the full suite still runs instead of only the napari widget tests. --- .github/workflows/tests.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bbfa52942..7ea9c73e2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -64,12 +64,16 @@ jobs: - python_version: "3.11" os: "macos-15-intel" qt_backend: "PyQt5" + napari: "napari92" # napari 0.10 dropped PyQt5 + pytest_args: "package/tests" - python_version: "3.12" os: "macos-15" qt_backend: "PyQt6" - python_version: "3.11" os: "windows-latest" qt_backend: "PyQt5" + napari: "napari92" # napari 0.10 dropped PyQt5 + pytest_args: "package/tests" - python_version: "3.10" os: "ubuntu-22.04" qt_backend: "PySide2" @@ -85,6 +89,8 @@ jobs: os: ${{ matrix.os }} qt_backend: ${{ matrix.qt_backend }} tox_args: ${{ matrix.tox_args }} + napari: ${{ matrix.napari || 'latest' }} + pytest_args: ${{ matrix.pytest_args }} base-test-main: name: Base py${{ matrix.python_version }} @@ -101,6 +107,8 @@ jobs: - python_version: "3.12" qt_backend: "PyQt5" os: "ubuntu-22.04" + napari: "napari92" # napari 0.10 dropped PyQt5 + pytest_args: "package/tests" - python_version: "3.10" os: "ubuntu-22.04" qt_backend: "PySide2" @@ -116,7 +124,8 @@ jobs: os: ${{ matrix.os }} qt_backend: ${{ matrix.qt_backend }} artifact_suffix: "-main" - pytest_args: "-v" + napari: ${{ matrix.napari || 'latest' }} + pytest_args: ${{ matrix.pytest_args || '-v' }} test_coverage: needs: download_data @@ -125,9 +134,13 @@ jobs: fail-fast: false matrix: qt_backend: ["PyQt5", "PyQt6"] + include: + - qt_backend: "PyQt5" + napari: "napari92" # napari 0.10 dropped PyQt5 with: test_data: True python_version: "3.12" + napari: ${{ matrix.napari || 'latest' }} tox_args: "-e py312-${{ matrix.qt_backend }}-coverage" coverage: true qt_backend: ${{ matrix.qt_backend }}