Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test_all_plugins workflow #370

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Conversation

DragaDoncila
Copy link
Contributor

@DragaDoncila DragaDoncila commented Jan 15, 2025

Since ages ago, the test_all_plugins.yml workflow was no longer usable because the GHA matrix allows for a maximum of 256 jobs, and we have far more plugins than that.

This PR updates the workflow to:

  • use npe2api to retrieve the plugin index, instead of the napari hub API
  • randomly select 10 plugins from the list of all plugins (eventually we may want to update this to select the latest updated plugins or something)
  • use the $GITHUB_OUTPUT environment file to set the matrix strategy output instead of ::set-output command which is soon to be deprecated
  • use miniforge3 instead of mambaforge for setting up conda because a warning in an action said so

Note the workflow is still triggered in the same ways: via manual dispatch, or via the test-all-plugins label added to a PR

@DragaDoncila
Copy link
Contributor Author

CI here will continue failing until we merge #371 (at least 😆)

@DragaDoncila DragaDoncila changed the title Try npe2api for testing all plugins Fix test_all_plugins workflow Jan 17, 2025
@DragaDoncila DragaDoncila marked this pull request as ready for review January 17, 2025 06:17
@DragaDoncila DragaDoncila added the test-all-plugins use to trigger CI tests on all plugins label Jan 17, 2025
@DragaDoncila DragaDoncila requested a review from jni January 17, 2025 06:22
Copy link

codecov bot commented Jan 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (0029e21) to head (1b77272).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #370   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           37        37           
  Lines         2709      2709           
=========================================
  Hits          2709      2709           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

python-version: 3.9
miniforge-variant: Mambaforge
python-version: '3.10'
miniforge-variant: Miniforge3
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
miniforge-variant: Miniforge3
miniforge-variant: Miniforge3
conda-remove-defaults: "true"

To silence the warning
https://github.com/napari/npe2/actions/runs/12840078624

Copy link
Member

@psobolewskiPhD psobolewskiPhD left a comment

Choose a reason for hiding this comment

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

Looks good!
https://github.com/napari/npe2/actions/runs/12840078624

Any thought to making it more than 10?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test-all-plugins use to trigger CI tests on all plugins
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants