Skip to content

Commit

Permalink
Merge pull request #716 from rgommers/slow-tests
Browse files Browse the repository at this point in the history
TST/CI: mark some tests as slow and avoid running them in wheel builds and Emscripten job

[skip ci]
  • Loading branch information
rgommers committed Mar 12, 2024
2 parents 71d2281 + f5c6503 commit 310fab5
Show file tree
Hide file tree
Showing 4 changed files with 5 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
1 change: 1 addition & 0 deletions pywt/tests/test_mra.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ def test_mra2_axes(transform, axes, ndim, dtype):
# nd mra tests
####

@pytest.mark.slow
@pytest.mark.parametrize('wavelet', ['sym2', ])
@pytest.mark.parametrize('transform', ['dwtn', 'swtn'])
@pytest.mark.parametrize('mode', pywt.Modes.modes)
Expand Down
2 changes: 2 additions & 0 deletions pywt/tests/test_perfect_reconstruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@


import numpy as np
import pytest
from numpy.testing import assert_

import pywt


@pytest.mark.slow
def test_perfect_reconstruction():
families = ('db', 'sym', 'coif', 'bior', 'rbio')
wavelets = sum([pywt.wavelist(name) for name in families], [])
Expand Down

0 comments on commit 310fab5

Please sign in to comment.