Run tests for zarr v2 and v3 #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test the library | |
| on: | |
| push: | |
| branches: | |
| - master # for legacy repos | |
| - main | |
| pull_request: | |
| branches: | |
| - master # for legacy repos | |
| - main | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 0 1,16 * *" | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: >- | |
| ${{ github.workflow }}-${{ github.ref_type }}- | |
| ${{ github.event.pull_request.number || github.sha }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| python: ["3.10", "3.11", "3.12", "3.13", "3.14"] | |
| zarr: ["2.*", "3.*"] | |
| platform: | |
| - ubuntu-latest | |
| # - macos-latest | |
| # - windows-latest | |
| runs-on: ${{ matrix.platform }} | |
| name: Python ${{ matrix.python }}, Zarr ${{ matrix.zarr }}, ${{ matrix.platform }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| id: setup-python | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install "zarr==${{ matrix.zarr }}" | |
| pip install tox coverage | |
| - name: Run tests | |
| run: >- | |
| pipx run --python '${{ steps.setup-python.outputs.python-path }}' | |
| tox | |
| -- -rFEx --durations 10 --color yes --cov --cov-branch --cov-report=xml |