Skip to content

Commit 928e744

Browse files
committed
Promote WASM to a fully supported platform, and run tests more frequently
1 parent a24a762 commit 928e744

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/wasm-tests.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Tests (WASM)
2+
3+
on: # same cadence as build.yml ("same as other tests")
4+
push:
5+
branches: ['**']
6+
pull_request:
7+
branches: [main]
8+
9+
env:
10+
CIBW_BUILD_VERBOSITY: 1
11+
12+
jobs:
13+
test_wasm:
14+
name: Build & test WASM/Pyodide wheel (Python 3.14)
15+
runs-on: ubuntu-latest
16+
env:
17+
CIBW_BUILD: "cp314-*"
18+
CIBW_PYODIDE_VERSION: "314.0.0"
19+
# WASM/Pyodide has no SIMD/runtime CPU detection; disable optimised paths
20+
CMAKE_ARGS: "-DWITH_ZLIB_OPTIM=OFF -DWITH_OPTIM=OFF -DWITH_RUNTIME_CPU_DETECTION=OFF"
21+
# cibuildwheel runs the suite automatically in the node/pyodide runtime
22+
CIBW_TEST_COMMAND: "pytest {project}/tests"
23+
steps:
24+
- uses: actions/checkout@v6
25+
- uses: actions/setup-python@v6
26+
with:
27+
python-version: '3.x'
28+
- name: Install build dependencies
29+
run: sudo apt-get update && sudo apt-get install -y cmake
30+
- name: Install cibuildwheel
31+
run: pip install "cibuildwheel==4.1.*"
32+
- name: Build and test wheel
33+
run: cibuildwheel --platform pyodide # platform=pyodide is CLI-only

0 commit comments

Comments
 (0)