Repository navigation
Update pyodide CI test to match the pattern used by numpy - #8140
Conversation
|
|
||
| [tool.cibuildwheel.pyodide] | ||
| test-command = "pytest --pyargs skimage tests" | ||
| test-extras = ["test"] |
There was a problem hiding this comment.
This is to address the failure seen in the nightly wheels build: ERROR: No matching distribution found for matplotlib>=3.10; extra == "optional-free-threaded"
|
Reviews (1): Last reviewed commit: "Update pyodide CI test to match the patt..." | Re-trigger Greptile |
|
|
||
| [tool.cibuildwheel.pyodide] | ||
| test-command = "pytest --pyargs skimage tests" | ||
| test-extras = ["test"] |
There was a problem hiding this comment.
Potentially incompatible packages in Pyodide test extras
test-extras = ["test"] will instruct cibuildwheel to run pip install scikit-image[test] inside the Pyodide environment, pulling in pytest-localserver (spawns a werkzeug HTTP server) and pytest-faulthandler (uses signal handlers). Neither has a Pyodide/Emscripten wheel in the Pyodide package repository, and both rely on OS-level networking/signal APIs that are not available in the WASM32 sandbox. If micropip cannot find a compatible wheel it will raise an error and fail the CI step. The original workflow only installed pytest and pytest-pretty; consider narrowing test-extras or adding a conditional install to exclude incompatible packages on emscripten.
There was a problem hiding this comment.
This change matches the pattern used in the nightly wheel build
|
Reviews (2): Last reviewed commit: "match original triggers" | Re-trigger Greptile |
| # To enable this workflow on a fork, comment out: | ||
| if: github.repository == 'scikit-image/scikit-image' |
There was a problem hiding this comment.
Previously this workflow ran for pull requests.
So what is the background for this check? Wouldn't this restrict the workflow to branches on our main repo only (effectively 'main')?
There was a problem hiding this comment.
I copied the pattern from numpy. It avoids running the workflow on forks (by default).
| @@ -303,3 +303,4 @@ before-all = [ | |||
|
|
|||
| [tool.cibuildwheel.pyodide] | |||
| test-command = "pytest --pyargs skimage tests" | |||
There was a problem hiding this comment.
| test-command = "pytest --pyargs skimage tests" | |
| test-command = "pytest --pyargs skimage _skimage2 tests" |
I wonder if it would fallback to our pytest config in pyproject.toml if we removed --pyargs ...?
There was a problem hiding this comment.
Yeah let's do that instead.
There was a problem hiding this comment.
It worked as expected in the passing build, _skimage2 was picked up.
lagru
left a comment
There was a problem hiding this comment.
I love to see simplification! 😊
|
Reviews (3): Last reviewed commit: "address review" | Re-trigger Greptile |
|
Thanks! |
|
|
||
| # Install pytest and optional dependencies that are available | ||
| pip install pytest pytest-pretty | ||
| pip install "astropy" "dask[array]" "matplotlib" "PyWavelets" "scikit-learn" |
There was a problem hiding this comment.
Note change in tested dependencies.
* origin/main: Update pyodide CI test to match the pattern used by numpy (scikit-image#8140)
* origin/main: (85 commits) Drop Python 3.11 Support (#8153) undo change to benchmark workflow address review Update pyodide CI test to match the pattern used by numpy (#8140) Update .github/workflows/_build_linux_for_python_x.yaml Update .github/workflows/_test_linux_for_python_x.yaml Suppress tifffile DeprecationWarning in test_plugin_deprecation_on_imread (#8138) fix yaml fix yaml Update .github/workflows/test-linux.yaml Update .github/workflows/_test_linux_for_python_x.yaml Update .github/workflows/test-linux.yaml Update .github/workflows/test-linux.yaml Move tests back to doc build Fill out .PHONY targets Apply suggestions from code review Remove unused imports (apply commit hooks) Improve inserted docstring note of `deprecated_func` (#8095) address review Update doc/source/index.rst ...
Fixes #8136.
The original
test-pyodide.ymlwas copied fromnumpyin 2024. They have since simplified the workflow to usecibuildwheelto do the environment setup. This will make it easier to maintain on our end.