Skip to content

Commit

Permalink
Add test-for-pyodide.yml workflows
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gbolmier committed Nov 28, 2024
1 parent 0390346 commit fc8b53d
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test-for-pyodide.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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

- 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

0 comments on commit fc8b53d

Please sign in to comment.