Skip to content

Commit caa9dd9

Browse files
committed
Use a default test command
1 parent 6ff014c commit caa9dd9

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

pyproject.toml

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -84,29 +84,15 @@ 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"
88-
#test-command = "pytest {project}/tests/ndarray/test_reductions.py"
89-
#test-command = "pytest {project}/tests/ndarray/test_reductions.py::test_save_version1"
87+
test-command = "pytest {project}/tests" # default command
9088
#test-command = "python -c'import blosc2; blosc2.print_versions(); import numpy; print(dir(numpy))'"
9189
# Manylinux 2014 will be the default for x86_64 and aarch64
9290
manylinux-x86_64-image = "manylinux2014"
9391
manylinux-aarch64-image = "manylinux2014"
9492

95-
[[tool.cibuildwheel.environment.CIBW_TEST_COMMAND]]
96-
CIBW_PLATFORM = "wasm32"
97-
value = "pytest {project}/tests/ndarray/test_reductions.py"
98-
99-
[[tool.cibuildwheel.environment.CIBW_TEST_COMMAND]]
100-
CIBW_PLATFORM = "linux"
101-
value = "pytest {project}/tests"
102-
103-
[[tool.cibuildwheel.environment.CIBW_TEST_COMMAND]]
104-
CIBW_PLATFORM = "macos"
105-
value = "pytest {project}/tests"
106-
107-
[[tool.cibuildwheel.environment.CIBW_TEST_COMMAND]]
108-
CIBW_PLATFORM = "windows"
109-
value = "pytest {project}/tests"
93+
[tool.cibuildwheel.overrides]
94+
[tool.cibuildwheel.overrides.pyodide] # for WASM/pyodide
95+
test-command = "pytest {project}/tests/ndarray/test_reductions.py"
11096

11197
[tool.ruff]
11298
line-length = 109

0 commit comments

Comments
 (0)