From a0fedac2e59b35278e842ac61d3689389655f7b2 Mon Sep 17 00:00:00 2001 From: Jerome Kelleher Date: Wed, 23 Oct 2024 13:48:48 +0100 Subject: [PATCH] Add tests for Zarr v2 and v3 --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index deeebf5..8bcb406 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -132,3 +132,25 @@ jobs: # We just run the CLI tests here because it doesn't require other upstream # packages like sgkit (which are tangled up with the numpy 2 dependency) python -m pytest tests/test_cli.py + + test-zarr-version: + name: Test Zarr versions + runs-on: ubuntu-latest + strategy: + matrix: + zarr: ["==2.18.3", "==3.0.0b1"] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.11' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install '.[dev]' + - name: Install zarr${{ matrix.zarr }} + run: | + python -m pip install --pre 'zarr${{ matrix.zarr }}' + - name: Run tests + run: | + python -m pytest