Repository navigation
ci: Run PyQt5 test jobs against napari 0.9.2 - #1508
Conversation
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.
Reviewer's GuideConfigurationRoute the macOS and Windows PyQt5 base jobs to napari 0.9.2 and run the full package test suite, while passing the matrix-selected napari version and pytest arguments through the job.
Configure the Ubuntu PyQt5 base-main job to use napari 0.9.2 and the full package test suite, with defaults for other matrix entries.
Run the PyQt5 coverage job with the napari 0.9.2 constraint while leaving other coverage backends on the default napari version.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #1508 +/- ##
===========================================
- Coverage 92.63% 92.61% -0.02%
===========================================
Files 211 211
Lines 33247 33247
===========================================
- Hits 30797 30792 -5
- Misses 2450 2455 +5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|



Summary
napari 0.10.0 dropped PyQt5 support. The
pyqt5extra capsnapari<0.10.0, but the "latest" constraint files are compiled without that extra, so the automatic constraints upgrade (#1483) pinsnapari==0.10.0. That makes every PyQt5 job using the latest constraints fail to resolve:This PR moves the PyQt5 jobs in
tests.ymltonapari92:napari: napari92, so they get theversion_denylist.txtconstraint and thepyXXX-PyQt5-napari_92tox env (napari==0.9.2).pytest_args: package/testskeeps the full suite running instead of only the napari widget tests.test_coverage (PyQt5): this usesnapari: napari92, which switches it to the denylist constraint and keeps thepy312-PyQt5-coverageenv. The<0.10.0cap from the extra then resolves napari to 0.9.2.napari: latestthrough${{ matrix.napari || 'latest' }}.Test plan
actionlintpassestox config -e py311-PyQt5-napari_92 -- package/testsshowsnapari==0.9.2and pytest running onpackage/testsuv pip compile --extra pyqt5 --extra test -c requirements/version_denylist.txtresolvesnapari==0.9.2🤖 Generated with Claude Code
Summary by Sourcery
Pin PyQt5 CI jobs to napari 0.9.2 while preserving latest-napari testing for supported backends.
Bug Fixes:
Enhancements:
CI:
Summary by CodeRabbit