Skip to content

Commit a4ef53a

Browse files
committed
Run full test suite, not just doctests
1 parent 2e92e25 commit a4ef53a

File tree

6 files changed

+9
-10
lines changed

6 files changed

+9
-10
lines changed

.github/workflows/nightly-wheel-build.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ jobs:
2424
PIP_EXTRA_INDEX_URL="https://pypi.anaconda.org/scientific-python-nightly-wheels/simple"
2525
# assert NumPy 2.0 before running tests
2626
CIBW_TEST_COMMAND: >
27-
pip list --pre --format=freeze | grep -q 'numpy==2' &&
28-
(cd .. && pytest --pyargs skimage)
27+
pip list --pre --format=freeze | grep -q 'numpy==2' && pytest
2928
3029
upload_anaconda:
3130
permissions:

.github/workflows/test-linux.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ jobs:
125125
# A lazy loader configuration parameter
126126
EAGER_IMPORT: ${{ matrix.EAGER_IMPORT }}
127127
run: |
128-
(cd .. && $PYTEST --doctest-plus --showlocals --pyargs skimage)
128+
$PYTEST --doctest-plus --showlocals
129129
130130
- name: Check benchmarks
131131
run: |
@@ -175,7 +175,7 @@ jobs:
175175
# A lazy loader configuration parameter
176176
EAGER_IMPORT: ${{ matrix.EAGER_IMPORT }}
177177
run: |
178-
(cd .. && $PYTEST --doctest-plus --showlocals --pyargs skimage)
178+
(cd .. && $PYTEST --doctest-plus --showlocals)
179179
180180
report-failures:
181181
runs-on: ubuntu-latest

.github/workflows/test-macos.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
7070
- name: Run tests
7171
run: |
72-
(cd .. && $PYTEST --doctest-plus --showlocals --pyargs skimage)
72+
$PYTEST --doctest-plus --showlocals
7373
7474
- name: Check benchmarks
7575
run: |

.github/workflows/test-nightlies-on-main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
6363
- name: Run tests
6464
run: |
65-
(cd .. && $PYTEST --doctest-plus --showlocals --pyargs skimage)
65+
$PYTEST --doctest-plus --showlocals
6666
6767
- name: "Job has failed: reporting"
6868
if: ${{ failure() && github.ref == 'refs/heads/main' }}

.github/workflows/test-windows.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
- name: Run tests
9393
shell: bash
9494
run: |
95-
(cd .. && $PYTEST --doctest-plus --showlocals --pyargs skimage)
95+
$PYTEST --doctest-plus --showlocals
9696
9797
- name: "Job has failed: reporting"
9898
if: ${{ failure() && github.ref == 'refs/heads/main' }}

.github/workflows/wheels-recipe.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
CIBW_TEST_COMMAND:
1717
required: false
1818
type: string
19-
default: "pytest --pyargs skimage"
19+
default: "pytest"
2020

2121
env:
2222
CIBW_BUILD_VERBOSITY: 1
@@ -56,7 +56,7 @@ jobs:
5656
if: endsWith(matrix.cibw_python, 't-*')
5757
run: |
5858
NIGHTLY_PIP_ARGS="--pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple --only-binary :all:"
59-
TEST_COMMAND="PYTHON_GIL=0 pytest --pyargs skimage"
59+
TEST_COMMAND="PYTHON_GIL=0 pytest"
6060
echo "CIBW_ENABLE=cpython-prerelease cpython-freethreading" >> $GITHUB_ENV
6161
# Remove once Cython is out that supports free-threaded build
6262
echo "CIBW_BUILD_FRONTEND=pip; args: $NIGHTLY_PIP_ARGS" >> $GITHUB_ENV
@@ -278,4 +278,4 @@ jobs:
278278
CIBW_TEST_REQUIRES_PYODIDE: "pytest astropy cloudpickle dask[array] matplotlib PyWavelets scikit-learn"
279279
# Don't use the cache provider plugin, as it doesn't work with Pyodide
280280
# right now: https://github.com/pypa/cibuildwheel/issues/1966
281-
CIBW_TEST_COMMAND_PYODIDE: "pytest -svra -p no:cacheprovider --pyargs skimage"
281+
CIBW_TEST_COMMAND_PYODIDE: "pytest -svra -p no:cacheprovider"

0 commit comments

Comments
 (0)