| 1 |
name: Test Emscripten/Pyodide build |
| 2 |
|
| 3 |
on: |
| 4 |
pull_request: |
| 5 |
branches: |
| 6 |
- main |
| 7 |
- maintenance/** |
| 8 |
paths-ignore: |
| 9 |
- '**.pyi' |
| 10 |
- '**.md' |
| 11 |
- '**.rst' |
| 12 |
|
| 13 |
permissions: |
| 14 |
contents: read # to fetch code (actions/checkout) |
| 15 |
|
| 16 |
env: |
| 17 |
FORCE_COLOR: 3 |
| 18 |
|
| 19 |
concurrency: |
| 20 |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} |
| 21 |
cancel-in-progress: true |
| 22 |
|
| 23 |
|
| 24 |
jobs: |
| 25 |
build-wasm-emscripten: |
| 26 |
name: Pyodide test |
| 27 |
runs-on: ubuntu-22.04 |
| 28 |
# To enable this workflow on a fork, comment out: |
| 29 |
if: github.repository == 'numpy/numpy' |
| 30 |
steps: |
| 31 |
- name: Checkout NumPy |
| 32 |
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 |
| 33 |
with: |
| 34 |
submodules: recursive |
| 35 |
fetch-tags: true |
| 36 |
persist-credentials: false |
| 37 |
|
| 38 |
- uses: pypa/cibuildwheel@63fd63b352a9a8bdcc24791c9dbee952ee9a8abc # v3.3.0 |
| 39 |
env: |
| 40 |
CIBW_PLATFORM: pyodide |
| 41 |
CIBW_BUILD: cp312-* |