Skip to content

Commit bed6a80

Browse files
committed
Try to use a simpler test suite for wasm32
1 parent 70ec22b commit bed6a80

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/wasm.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ on:
99

1010
env:
1111
CIBW_BUILD_VERBOSITY: 1
12-
PYODIDE_VERSION: 0.27.2
12+
# cibuildwheel cannot choose for a specified version of pyodide yet
13+
# PYODIDE_VERSION: 0.27.2
1314

1415
jobs:
1516
build_wheels_wasm:
@@ -44,14 +45,9 @@ jobs:
4445
run: pip install cibuildwheel
4546

4647
- name: Build wheels
48+
# Testing is automaticall made by cibuildwheel
4749
run: cibuildwheel --platform pyodide
4850

49-
- name: Install pytest
50-
run: pip install pytest
51-
52-
- name: Test wheels
53-
run: pytest {project}/tests/ndarray/test_reductions.py
54-
5551
- name: Upload wheels
5652
uses: actions/upload-artifact@v4
5753
with:

pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,18 @@ 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"
87+
test-command = "pytest {project}/tests"
88+
#test-command = "pytest {project}/tests/ndarray/test_reductions.py"
8989
#test-command = "pytest {project}/tests/ndarray/test_reductions.py::test_save_version1"
9090
#test-command = "python -c'import blosc2; blosc2.print_versions(); import numpy; print(dir(numpy))'"
9191
# Manylinux 2014 will be the default for x86_64 and aarch64
9292
manylinux-x86_64-image = "manylinux2014"
9393
manylinux-aarch64-image = "manylinux2014"
9494

95+
[[tool.cibuildwheel.environment.CIBW_TEST_COMMAND]]
96+
CIBW_PLATFORM = "wasm32"
97+
value = "pytest {project}/tests/ndarray/test_reductions.py"
98+
9599
[tool.ruff]
96100
line-length = 109
97101
extend-exclude = ["bench"]

0 commit comments

Comments
 (0)