Skip to content

Commit 835cc10

Browse files
jeromekellehertomwhite
authored andcommitted
Add tests for Zarr v2 and v3
1 parent c7850fc commit 835cc10

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,25 @@ jobs:
130130
# We just run the CLI tests here because it doesn't require other upstream
131131
# packages like sgkit (which are tangled up with the numpy 2 dependency)
132132
python -m pytest tests/test_cli.py
133+
134+
test-zarr-version:
135+
name: Test Zarr versions
136+
runs-on: ubuntu-latest
137+
strategy:
138+
matrix:
139+
zarr: ["==2.18.3", "==3.0.0b2"]
140+
steps:
141+
- uses: actions/checkout@v4
142+
- uses: actions/setup-python@v5
143+
with:
144+
python-version: '3.11'
145+
- name: Install dependencies
146+
run: |
147+
python -m pip install --upgrade pip
148+
python -m pip install '.[dev]'
149+
- name: Install zarr${{ matrix.zarr }}
150+
run: |
151+
python -m pip install --pre 'zarr${{ matrix.zarr }}'
152+
- name: Run tests
153+
run: |
154+
python -m pytest

0 commit comments

Comments
 (0)