Repository navigation
chore: Modernize tox configuration and workflows - #1494
Conversation
As napari dropped pyqt5 the tests start failing we need to modernize test definition
Reviewer's GuideModernizes tox 4 configuration and CI workflows by updating Python and napari targets, replacing PyQt5-oriented test environments with current Qt backends, centralizing environment-specific dependencies and reporting, and propagating backend/work-directory settings through Azure and GitHub Actions. Flow diagram for centralized tox test executionflowchart TD
Start[Select tox environment]
Config[Apply shared pass_env and dependencies]
Backend[Install selected Qt backend extra]
Target[Install selected napari target]
Tests[Run pytest with JSON reporting]
Start --> Config
Config --> Backend
Backend --> Target
Target --> Tests
File-Level Changes
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:
|
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="tox.ini" line_range="14" />
<code_context>
+ py{311,312,313,314}-{PyQt6,PySide6}-napari_repo
+ py{310,311,312,313}-{PyQt5,PyQt6}-napari_62
+ py{310,311,312,313,314}-{PyQt5,PyQt6}-napari_70
+ py{311,312,313,314}-{PyQt5,PyQt6}-napari_92
+ py{312,313}-PySide6-napari_62
+ py{312,313,314}-PySide6-napari_{70,92}
</code_context>
<issue_to_address>
**PyQt5 napari tests remain enabled**
When running the default tox environment list, tox creates these environments with `napari==0.9.2`, so the default test matrix still exercises the backend combination napari dropped and those environments fail instead of providing a runnable test suite.
Remove PyQt5 from the napari_92 environment expansion, keeping it only for napari versions that support that backend.
</issue_to_address>Sourcery assessment
Approval pending. 1 finding to address first.
Blocking findings: tox.ini:14
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #1494 +/- ##
===========================================
- 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:
|
|



As napari dropped pyqt5 the tests start failing we need to modernize test definition
Summary by Sourcery
Modernize test and packaging automation for current Python, Qt, and napari versions while improving tox environment coverage and diagnostics.
New Features:
Bug Fixes:
Enhancements:
Build:
CI:
Summary by CodeRabbit
Tests
Chores