Skip to content

Commit

Permalink
CI: avoid running slow tests in wheel builds and Emscripten
Browse files Browse the repository at this point in the history
These are extra tests that iterate over all wavelets and require a lot
of time even on a regular x86-64 build (~10s for `test_precision`, 42s
for `test_swt_iswt` on my machine). For Emscripten and especially under
Qemu (Linux aarch64 wheel builds) they're really really slow.
These tests aren't essential to run for wheel builds, so disable them.
  • Loading branch information
rgommers committed Mar 12, 2024
1 parent 4201a61 commit f5c6503
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/emscripten.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
pushd demo
pip install matplotlib pytest
python -c "import pywt; print(pywt.__version__)"
pytest --pyargs pywt
pytest --pyargs pywt -m "not slow"
# https://anaconda.org/scientific-python-nightly-wheels/pywavelets
# WARNING: this job will overwrite existing wheels.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wheel_tests_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env:
CIBW_BUILD_VERBOSITY: 2
# CIBW_BEFORE_BUILD: pip install cython
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: pytest --pyargs pywt
CIBW_TEST_COMMAND: pytest --pyargs pywt -m "not slow"
CIBW_ENVIRONMENT: PIP_PREFER_BINARY=1

jobs:
Expand Down

0 comments on commit f5c6503

Please sign in to comment.