Skip to content

Commit

Permalink
ci: try cibuildwheel pyodide
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii committed May 26, 2024
1 parent 075b53f commit 7c6c130
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/emscripten.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:

- uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.12"

- name: Install pyodide-build
run: pip install pyodide-build==0.25.1
run: pip install pyodide-build==0.26.0a6

- name: Compute emsdk version
id: compute-emsdk-version
Expand Down Expand Up @@ -65,3 +65,26 @@ jobs:
with:
name: emscripten-wheel
path: dist/*.whl

build-pyodide:
name: Pyodide cibuildwheel
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0

- uses: actions/setup-python@v5
with:
python-version: "3.12"

- uses: hoodmane/cibuildwheel@emscripten
env:
CIBW_PLATFORM: pyodide

- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: pyodide-wheel
path: wheelhouse/*.whl
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ ignore_missing_imports = true

[tool.cibuildwheel]
test-extras = "test"
test-command = "pytest --benchmark-disable {project}/tests"
test-command = "python -m pytest --benchmark-disable {project}/tests"
test-skip = [
"pp37-*",
"pp38-*",
Expand Down

0 comments on commit 7c6c130

Please sign in to comment.