Skip to content

Commit fc8b53d

Browse files
committed
Add test-for-pyodide.yml workflows
Let's first test the build of the WASM wheels in an independant workflow so that it is easier to iterate and make sure it works before adding the logic to the pypi workflow.
1 parent 0390346 commit fc8b53d

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: test-for-pyodide
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "*"
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
run:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Set up QEMU
18+
uses: docker/setup-qemu-action@v3
19+
with:
20+
platforms: all
21+
22+
- name: Build wheels
23+
uses: pypa/[email protected]
24+
timeout-minutes: 720
25+
env:
26+
CIBW_PLATFORM: "pyodide"
27+
CIBW_ENVIRONMENT: 'PATH="$HOME/.cargo/bin:$PATH"'
28+
CIBW_ENVIRONMENT_LINUX: 'PATH="$HOME/.cargo/bin:$PATH" CARGO_NET_GIT_FETCH_WITH_CLI="true"'
29+
CIBW_BEFORE_BUILD: >
30+
rustup default nightly &&
31+
rustup show
32+
CIBW_BEFORE_BUILD_LINUX: >
33+
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=nightly --profile=minimal -y &&
34+
rustup show
35+
CIBW_TEST_REQUIRES: pytest pytest-xdist
36+
CIBW_TEST_COMMAND: pytest {project} -m "not datasets" --durations=10 -n logical

0 commit comments

Comments
 (0)