forked from zarr-developers/zarr-python
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (47 loc) · 1.52 KB
/
Copy pathzarr-codec-extraction.yml
File metadata and controls
50 lines (47 loc) · 1.52 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
name: zarr-codec extraction
on:
pull_request:
paths:
- 'packages/zarr-codec/**'
- 'src/zarr/abc/codec.py'
- '.github/workflows/zarr-codec-extraction.yml'
push:
branches: [main]
paths:
- 'packages/zarr-codec/**'
- 'src/zarr/abc/codec.py'
- '.github/workflows/zarr-codec-extraction.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.12', '3.14']
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
- name: Install Python and Hatch
run: |
uv python install ${{ matrix.python-version }}
uv tool install hatch==1.18.0
- name: Test extracted interfaces against this checkout
env:
PYTHONPATH: packages/zarr-codec/src
run: >-
hatch run test.py${{ matrix.python-version }}-minimal:pytest
packages/zarr-codec/tests --import-mode=importlib
- name: Build codec distributions
working-directory: packages/zarr-codec
run: hatch build
- name: Test built wheels
env:
PYTHONPATH: packages/zarr-codec/dist/zarr_codec-0.1.0-py3-none-any.whl
run: >-
hatch run test.py${{ matrix.python-version }}-minimal:pytest
packages/zarr-codec/tests --import-mode=importlib