Skip to content

Commit 32230f1

Browse files
committed
Move testing to .yml file
1 parent caa9dd9 commit 32230f1

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/wasm.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
env:
2222
CIBW_BUILD: ${{ matrix.cibw_build }}
2323
CMAKE_ARGS: "-DWITH_OPTIM=OFF"
24+
CIBW_TEST_COMMAND: "pytest {project}/tests/ndarray/test_reductions.py"
2425
strategy:
2526
matrix:
2627
os: [ubuntu-latest]

pyproject.toml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,13 @@ skip = "*-manylinux_i686 cp*-win32 *_ppc64le *_s390x *musllinux*"
8484
# We won't require torch when testing wheels to avoid building/running torch on slow platforms
8585
#test-requires = "pytest psutil"
8686
test-requires = "pytest"
87-
test-command = "pytest {project}/tests" # default command
88-
#test-command = "python -c'import blosc2; blosc2.print_versions(); import numpy; print(dir(numpy))'"
87+
#test-command = "pytest {project}/tests" # default command
88+
# Use a simpler command here, and let the workflow .yml file to set the command
89+
test-command = "python -c'import blosc2; blosc2.print_versions()'"
8990
# Manylinux 2014 will be the default for x86_64 and aarch64
9091
manylinux-x86_64-image = "manylinux2014"
9192
manylinux-aarch64-image = "manylinux2014"
9293

93-
[tool.cibuildwheel.overrides]
94-
[tool.cibuildwheel.overrides.pyodide] # for WASM/pyodide
95-
test-command = "pytest {project}/tests/ndarray/test_reductions.py"
96-
9794
[tool.ruff]
9895
line-length = 109
9996
extend-exclude = ["bench"]

0 commit comments

Comments
 (0)