Skip to content

ci: Run PyQt5 test jobs against napari 0.9.2 - #1508

Merged
Czaki merged 1 commit into
developfrom
ci/pyqt5-napari-092
Nov 25, 2026
Merged

Czaki merged 1 commit into
developfrom
ci/pyqt5-napari-092

Conversation

@Czaki

@Czaki Czaki commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

napari 0.10.0 dropped PyQt5 support. The pyqt5 extra caps napari<0.10.0, but the "latest" constraint files are compiled without that extra, so the automatic constraints upgrade (#1483) pins napari==0.10.0. That makes every PyQt5 job using the latest constraints fail to resolve:

Because you require napari[pyqt5]<0.10.0 and napari==0.10.0, we can conclude that your requirements are unsatisfiable.

This PR moves the PyQt5 jobs in tests.yml to napari92:

  • Base (PR), macOS py3.11 and Windows py3.11 PyQt5, and Base (push), ubuntu-22.04 py3.12 PyQt5: these use napari: napari92, so they get the version_denylist.txt constraint and the pyXXX-PyQt5-napari_92 tox env (napari==0.9.2). pytest_args: package/tests keeps the full suite running instead of only the napari widget tests.
  • test_coverage (PyQt5): this uses napari: napari92, which switches it to the denylist constraint and keeps the py312-PyQt5-coverage env. The <0.10.0 cap from the extra then resolves napari to 0.9.2.
  • Jobs for other backends keep napari: latest through ${{ matrix.napari || 'latest' }}.

Test plan

  • actionlint passes
  • tox config -e py311-PyQt5-napari_92 -- package/tests shows napari==0.9.2 and pytest running on package/tests
  • uv pip compile --extra pyqt5 --extra test -c requirements/version_denylist.txt resolves napari==0.9.2
  • CI is green

🤖 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:

  • Run PyQt5 CI jobs against napari 0.9.2 to restore compatibility after napari 0.10.0 dropped PyQt5 support.

Enhancements:

  • Allow CI test matrices to select napari versions and pytest targets while keeping latest napari for other backends.
  • Keep the affected PyQt5 jobs running the full package test suite.

CI:

  • Update pull-request, push, and coverage workflows to use the napari 0.9.2 constraints for PyQt5 jobs.

Summary by CodeRabbit

  • Tests
    • Expanded automated compatibility testing across additional Napari, Python, Qt, and operating system combinations.
    • Added coverage for another PyQt5 configuration. Selected test runs now focus on the package test suite, while other runs retain their existing scope.

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.
@sourcery-ai

sourcery-ai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Reviewer's Guide

Configuration

Route 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.

  • .github/workflows/tests.yml L67-68, L75-76, L92-93

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.

  • .github/workflows/tests.yml L110-111, L127-128

Run the PyQt5 coverage job with the napari 0.9.2 constraint while leaving other coverage backends on the default napari version.

  • .github/workflows/tests.yml L137-143

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sonarqubecloud

Copy link
Copy Markdown

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The CI test matrices now select Napari versions for base-test and coverage workflows. Specified PyQt5 base-test jobs also limit pytest to package/tests; base-test workflows accept matrix-selected pytest arguments.

Changes: CI test matrix updates

Layer / File(s) Summary
Base-test matrix and workflow inputs
.github/workflows/tests.yml
Specified PyQt5 matrix entries select napari92 and package/tests. Base-test workflows pass matrix-selected Napari versions and pytest arguments, with defaults.
Coverage Napari selection
.github/workflows/tests.yml
The coverage matrix adds a PyQt5-specific napari92 entry and passes the selected Napari version, defaulting to latest.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related PRs

  • 4DNucleome/PartSeg#1494: Adds napari 0.9.2 testing and tox configuration used by the PyQt5 test selections in this PR.
Merge Risk: Minimal · up to 79e68

This change adjusts CI test jobs so PyQt5 runs resolve a compatible napari version. It has no production impact, and no concrete merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title states the main change: PyQt5 CI test jobs are now run against napari 0.9.2. The raw summary confirms the tests.yml matrix adds a napari92 selection for PyQt5 base and coverage jobs, and the…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title states the main change: PyQt5 CI test jobs are now run against napari 0.9.2. The raw summary confirms the tests.yml matrix adds a napari92 selection for PyQt5 base and coverage jobs, and the objectives describe the same fix. The title is specific and accurate, and it uses the ci: prefix with a short, single-sentence phrasing.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 918e106 and 79e68c3.

Files selected for processing: 1

  • .github/workflows/tests.yml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@Czaki Czaki added this to the 0.17.1 milestone Nov 25, 2026

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Approved.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@codecov

codecov Bot commented Nov 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.61%. Comparing base (3fc7353) to head (79e68c3).
⚠️ Report is 1 commits behind head on develop.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Czaki
Czaki merged commit bb4caad into develop Nov 25, 2026
55 checks passed
@Czaki
Czaki deleted the ci/pyqt5-napari-092 branch November 25, 2026 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant