-
-
Notifications
You must be signed in to change notification settings - Fork 423
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
Simplify test dependant packages against napari #6336
base: main
Are you sure you want to change the base?
Conversation
pretty cool @Czaki! trying in app model: pyapp-kit/app-model#129 I do have a quick question... is it possible for the user to parametrize this? or would you have to do: test_napari_macos_pyqt5:
runs-on: macos-latest
uses: napari/napari/.github/workflows/test_external_package_workflow.yml@main
with:
backend: "pyqt5"
test_napari_ubuntu_pyqt5:
runs-on: ubuntu-latest
uses: napari/napari/.github/workflows/test_external_package_workflow.yml@main
with:
backend: "pyqt5"
test_napari_macos_pyside2:
runs-on: macos-latest
uses: napari/napari/.github/workflows/test_external_package_workflow.yml@main
with:
backend: "pyside2"
test_napari_ubuntu_pyside2:
runs-on: ubuntu-latest
uses: napari/napari/.github/workflows/test_external_package_workflow.yml@main
with:
backend: "pyside2" |
oh actually... looks like I can't actually specify |
inputs: | ||
package_to_test: | ||
required: false | ||
type: string | ||
default: "" | ||
package_to_test_ref: | ||
required: false | ||
type: string | ||
default: "" | ||
python_version: | ||
required: false | ||
type: string | ||
default: "3.10" | ||
platform: | ||
required: false | ||
type: string | ||
default: "ubuntu-latest" | ||
backend: | ||
required: false | ||
type: string | ||
default: "headless" | ||
pytest_path: | ||
required: false | ||
type: string | ||
default: "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tlambert03 Here is the full list that could be specified.
It includes backend
, platform
, python_version
and pytest_path
where pytest_path
is passed as environment variable to tox
and then placed in pytest
command.
[skip ci]
[skip ci]
[skip ci]
this is great @Czaki, I like it and would likely use it for pyapp-kit repos on which napari depends.
|
does such an update of the job name as implemented here is ok:
This is caused by your implementation of headless tests from #4245. In general, tox allows a fail line that starts with I will investigate other points tomorrow. |
@Czaki sorry I missed this originally. I've moved it to the 0.5 milestone, but it needs an update. |
Description
This PR add special workflow that simplify testing if some change in direct napari dependencies will break current main or latest released napari version.
This require that package could be installed using
pip install ./path_to_repository
To use this workflow there is enough to put this job in test workflow
By default this workflow runs
headless
test set, runs on ubuntu latest and use python 3.10 but it could be adjusted:Example of usage is here: napari/npe2#322
For testing this PR I have created
main_test
andv0.4.19x_test
in the napari repository that will need to be deleted after the final decision