-
-
Notifications
You must be signed in to change notification settings - Fork 421
62 lines (50 loc) · 1.56 KB
/
Copy pathemscripten.yml
File metadata and controls
62 lines (50 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Test on Pyodide/WASM
on:
push:
branches: [main, 3.1.x]
pull_request:
branches: [main, 3.1.x]
workflow_dispatch:
env:
FORCE_COLOR: 3
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: {}
jobs:
test-emscripten:
name: os=emscripten, py=${{ matrix.python-version }}, deps=minimal
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.14"]
steps:
- name: Checkout Zarr repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Set up Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: "24"
- name: Install Hatch
uses: pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc
with:
version: "1.16.5"
- name: Set Up Hatch Env
run: |
hatch env create pyodide
hatch env run -e pyodide list-env
# TODO: Update to a stable Pyodide version when we release it
- name: Install Pyodide xbuildenv
run: hatch env run -e pyodide setup-xbuildenv
- name: Build Zarr wheel
run: hatch build -c -t wheel
- name: Run Zarr tests for Pyodide
run: hatch env run -e pyodide run