Skip to content

Add WASM wheels build #3

Add WASM wheels build

Add WASM wheels build #3

name: test-for-pyodide
on:
pull_request:
branches:
- "*"
push:
branches:
- main
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: all
- run: rustup target add wasm32-unknown-emscripten
- name: Build wheels
uses: pypa/[email protected]
timeout-minutes: 720
env:
CIBW_PLATFORM: "pyodide"
CIBW_ENVIRONMENT: 'PATH="$HOME/.cargo/bin:$PATH"'
CIBW_ENVIRONMENT_LINUX: 'PATH="$HOME/.cargo/bin:$PATH" CARGO_NET_GIT_FETCH_WITH_CLI="true"'
CIBW_BEFORE_BUILD: >
rustup default nightly &&
rustup show
CIBW_BEFORE_BUILD_LINUX: >
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=nightly --profile=minimal -y &&
rustup show
CIBW_TEST_REQUIRES: pytest pytest-xdist
CIBW_TEST_COMMAND: pytest {project} -m "not datasets" --durations=10 -n logical