Skip to content

Commit 5fafa9d

Browse files
Add tests for Zarr v2 and v3
1 parent 4dd205e commit 5fafa9d

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
@@ -132,3 +132,25 @@ jobs:
132132
# We just run the CLI tests here because it doesn't require other upstream
133133
# packages like sgkit (which are tangled up with the numpy 2 dependency)
134134
python -m pytest tests/test_cli.py
135+
136+
test-zarr-version:
137+
name: Test Zarr versions
138+
runs-on: ubuntu-latest
139+
strategy:
140+
matrix:
141+
zarr: ["==2.18.3", "3.0.0b1"]
142+
steps:
143+
- uses: actions/checkout@v4
144+
- uses: actions/setup-python@v5
145+
with:
146+
python-version: '3.11'
147+
- name: Install dependencies
148+
run: |
149+
python -m pip install --upgrade pip
150+
python -m pip install '.[dev]'
151+
- name: Install zarr${{ matrix.zarr }}
152+
run: |
153+
python -m pip install --pre 'zarr${{ matrix.zarr }}'
154+
- name: Run tests
155+
run: |
156+
python -m pytest

0 commit comments

Comments
 (0)