Simplify test dependant packages against napari#6336
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.
@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. |
|
Hm. Is this worth to restart from scratch? |


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_repositoryTo use this workflow there is enough to put this job in test workflow
By default this workflow runs
headlesstest 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_testandv0.4.19x_testin the napari repository that will need to be deleted after the final decision