Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
156 commits
Select commit Hold shift + click to select a range
e8a0afd
added arrow bytes codec
rabernat Nov 8, 2025
7d0b62d
DOC: Correct typos in zarr-python documentation (#3579)
star1327p Nov 11, 2025
4bc70bd
Update get method to use default buffer prototype (#3581)
keller-mark Nov 13, 2025
182504c
concurrency limit 64 -> 10 (#3578)
d-v-b Nov 13, 2025
95585ee
feat: bounded size `auto` sharding via `zarr.config` (#3574)
ilan-gold Nov 17, 2025
d0ff496
feat: make `async_array` public (#3556)
ilan-gold Nov 17, 2025
54dcede
Improve store section in migration guide (#3552)
dstansby Nov 17, 2025
edd47db
Parametrize Array with v2/v3 metadata (#3304)
dstansby Nov 17, 2025
8eb244f
Reduce number of documentation redirects needed (#3584)
maxrjones Nov 20, 2025
8a67021
update imports in docs (#3591)
d-v-b Nov 20, 2025
2530ce0
3.1.4 release notes (#3540)
d-v-b Nov 20, 2025
5b8887d
3.1.4, not pi (#3594)
d-v-b Nov 21, 2025
7d8105f
update release notes (#3598)
d-v-b Nov 21, 2025
3ae34cf
Bump the actions group with 2 updates (#3600)
dependabot[bot] Nov 24, 2025
94d543c
fix: clearer description of `array.target_shard_size` (#3599)
ilan-gold Nov 24, 2025
e456b09
chore/pin pytest asyncio (#3606)
d-v-b Nov 27, 2025
20670e6
fix tests for stand-alone example scripts (#3605)
d-v-b Nov 27, 2025
ee0e69a
fix: auto-chunking when auto-sharding 1MiB number (#3603)
ilan-gold Nov 27, 2025
9c0b409
make column name customizable
rabernat Dec 3, 2025
d665e42
Merge branch 'main' into arrow-ipc-codec
d-v-b Dec 3, 2025
96273a8
fix type checking errors
d-v-b Dec 3, 2025
65fec71
Some minor linter \ type-hint fixes for my own sanity (#3623)
xaviernogueira Dec 16, 2025
b873691
remove pytest pin (#3619)
d-v-b Dec 17, 2025
34859c4
use the result of the broadcasted array to check the contents (#3629)
hmaarrfk Dec 29, 2025
8207dd3
docs: Correct grammar issues in a/an usage (#3634)
star1327p Dec 31, 2025
6cc2b0d
Bump the actions group across 1 directory with 5 updates (#3630)
dependabot[bot] Jan 8, 2026
034cd20
ci: align pre-commit Python with tooling config (#3633)
ramanbansal1 Jan 8, 2026
79d864e
chore: update pre-commit hooks (#3610)
pre-commit-ci[bot] Jan 8, 2026
884a8c9
adjust docstrings (#3615)
melonora Jan 8, 2026
87d2041
Add experimental section to the API docs (#3642)
maxrjones Jan 8, 2026
acdd892
Add instructions to contributing guide about executable docs (#3645)
maxrjones Jan 8, 2026
e67935a
Fix deprecation of setting shape on a numpy array in 2.5+ (#3648)
mscheltienne Jan 12, 2026
7166a8d
Bump astral-sh/setup-uv from 7.1.6 to 7.2.0 in the actions group (#3646)
dependabot[bot] Jan 12, 2026
1c05c1a
Set copy=False in reshape operation (#3649)
mscheltienne Jan 12, 2026
c7b166e
Bump mimimum supported version of numpy (#3636)
dstansby Jan 15, 2026
7eba7f1
add benchmarks using pytest-benchmark and codspeed (#3562)
d-v-b Jan 15, 2026
4cddcf5
Simplify testing of different numpy versions (#3654)
dstansby Jan 15, 2026
e94504e
Clean up test extra dependencies (#3656)
dstansby Jan 16, 2026
c06923d
docs: Correct some typos in documentation (#3661)
star1327p Jan 19, 2026
68359bc
Bump actions/checkout from 5 to 6 in the actions group (#3659)
dependabot[bot] Jan 20, 2026
3fa19d2
chore/use prek (#3658)
d-v-b Jan 23, 2026
b30ae18
Add benchmarks for sharded + local store indexing (#3663)
aldenks Jan 25, 2026
0e61449
Add methods for getting bytes + json to store abc (#3638)
d-v-b Jan 26, 2026
20d04d2
Bump astral-sh/setup-uv from 5 to 7 in the actions group (#3669)
dependabot[bot] Jan 26, 2026
d44baf6
only run codspeed benchmarks on PRs labelled 'benchmark' (#3673)
d-v-b Jan 26, 2026
9c47b6d
Improve the usability of array runtime config (#3668)
d-v-b Jan 30, 2026
b712f96
chore: update pre-commit hooks (#3689)
pre-commit-ci[bot] Feb 2, 2026
22ea09f
Fix HTML syntax errors in README.md table (#3694)
DimitriPapadopoulos Feb 8, 2026
229a690
Fix grammar, typos, and clarity issues in documentation (#1) (#3693)
DimitriPapadopoulos Feb 11, 2026
f4d1221
fix: raise error when encountering nullable string dtype (#3695)
flying-sheep Feb 11, 2026
74a248d
lift async array methods to stand-alone functions (#3676)
d-v-b Feb 11, 2026
2a032a8
don't use depdendabot for the support/v2 branch (#3701)
d-v-b Feb 12, 2026
1ed266d
Support with read only in wrappers (#3700)
BorisTheBrave Feb 12, 2026
3e7d24d
perf:improve performance of morton order iter (#3705)
d-v-b Feb 12, 2026
a06318e
allow numpy ints in shapelike (#3706)
d-v-b Feb 12, 2026
e03cfc8
🐛 Fix obstore listdir method using _relativize_path (#3657)
antoinegaston Feb 13, 2026
23596c1
perf:remove isinstance check (#3704)
d-v-b Feb 13, 2026
306e480
Skip chunk coordinate enumeration in resize when array is only growin…
jakenotjay Feb 17, 2026
36caf1f
perf:Add additional sharding benchmarks (#3712)
mkitti Feb 18, 2026
d45f846
perf: Optimize Morton order with hypercube and vectorization (#3708)
mkitti Feb 19, 2026
f8b3d38
fix/nested shard reads (#3655)
d-v-b Feb 19, 2026
2f9b0b3
perf: Vectorize get_chunk_slice for faster sharded writes (#3713)
mkitti Feb 20, 2026
efed3a4
TEST: fix group selection for delete (#3707)
ianhi Feb 21, 2026
32c7ab9
Add non-power-of-2 shapes for Morton coding to benchmarks (#3717)
mkitti Feb 24, 2026
879e1ce
perf: Fix near-miss penalty in _morton_order with hybrid ceiling+args…
mkitti Feb 25, 2026
974c06c
chore/update hatch + use dependency groups (#3728)
d-v-b Feb 28, 2026
d926e43
perf: add sync methods to codecs (#3721)
d-v-b Feb 28, 2026
b8094d8
fix: implement separate cache for byte-range-requests (#3710)
d-v-b Mar 1, 2026
faec389
chore: update ruff and fix new ruff issues (#3739)
DimitriPapadopoulos Mar 3, 2026
ca53f8e
chore: update pre-commit hooks (#3738)
pre-commit-ci[bot] Mar 3, 2026
c50668b
Use the prek GitHub Action (#3745)
DimitriPapadopoulos Mar 6, 2026
266f2bb
Limit privilege escalation and token theft in workflows (#3742)
DimitriPapadopoulos Mar 6, 2026
b6d3ae2
No need to check reST files (#3743)
DimitriPapadopoulos Mar 6, 2026
8d01860
chore: Pre-commit hook for multi-character lstrip/rstrip (#3756)
maxrjones Mar 10, 2026
a89b927
docs: use dark text color on light mode search bar (#3760)
maxrjones Mar 11, 2026
1cb1cce
docs: add example of creating uncompressed arrays (#3464) (#3752)
abishop1990 Mar 11, 2026
fa61ed8
fix: BaseFloat._check_scalar rejects invalid string values (#3586) (#…
abishop1990 Mar 11, 2026
a02d996
docs: fix docstring for Array.cdata_shape (#3768)
maxrjones Mar 12, 2026
93dbf78
fix: apply drop_axes squeeze in partial decode path for sharding (#36…
abishop1990 Mar 13, 2026
1bfa53f
docs: add favicon (#3775)
maxrjones Mar 13, 2026
fccf372
fix: validate that dask-style chunks have regular shapes (#3779)
maxrjones Mar 16, 2026
7c78574
docs: add glossary (#3767)
maxrjones Mar 16, 2026
46654ad
docs: fix search color (#3777)
maxrjones Mar 16, 2026
03355b8
perf/store sync (#3725)
d-v-b Mar 16, 2026
65e1375
Remove `rich` as required for `tree()` (#3778)
ianhi Mar 17, 2026
536ce9d
chore: less frequent codspeed runs (#3784)
maxrjones Mar 17, 2026
4acebeb
Add missing slash character to towncrier issue format (#3788)
d-v-b Mar 19, 2026
a323ac7
doc: add ai use policy to contributing guide (#3769)
jhamman Mar 19, 2026
9a71d59
chore/towncrier header (#3789)
d-v-b Mar 19, 2026
8116454
chore: Use OIDC for publishing (#3791)
maxrjones Mar 19, 2026
25ee087
chore/3.1.6 release notes (#3790)
d-v-b Mar 19, 2026
420f11c
Rename the `DimensionNames` type to `DimensionNamesLike`. (#3800)
d-v-b Mar 20, 2026
427df3b
docs: remove incorrect redirect (#3801)
maxrjones Mar 21, 2026
93dd0e4
fix: handle special uint32 arrays on Windows correctly (#3797)
radoering Mar 21, 2026
9fa1016
add release trigger that takes a tag as input (#3821)
d-v-b Mar 23, 2026
46843be
Removes testpypi as a target for the workflow-dispatch-triggered rele…
d-v-b Mar 23, 2026
b76e006
perf: full shard write fast path (#3793)
slevang Mar 24, 2026
79d552a
Revert the changes applied in #3821 + #3822 (#3825)
d-v-b Mar 24, 2026
690c5bb
Fix needs_release_notes.yml workflow (#3824)
d-v-b Mar 24, 2026
3a2ce2f
feat: return a useful value from `CodecPipeline.read()` (#3828)
d-v-b Mar 25, 2026
8ca385a
docs: fix the docstring for `CodecPipeline.write` (#3836)
d-v-b Mar 26, 2026
5d92e85
Improve layout of work in progress page (#3841)
dstansby Mar 27, 2026
03e70f5
perf: oindex optimization (#3830)
slevang Mar 27, 2026
ea13af5
chore: spec0 compat (python 3.14 compat, python 3.12 min) (#3564)
ilan-gold Mar 27, 2026
19a383f
fix: remove numcodecs off-spec warning (#3833)
slevang Mar 27, 2026
2dc4036
DOC: remove result="ansi" causing empty code blocks in user guide (#3…
nuglifeleoji Mar 30, 2026
ac83402
chore: use `coverage run` instead of `pytest --cov` (#3847)
maxrjones Mar 31, 2026
0081fef
DOC: document init_group removal in v3 migration guide (#3851)
nuglifeleoji Mar 31, 2026
c9b534a
perf/chunktransform (#3722)
d-v-b Mar 31, 2026
1bbc826
Fill missing chunks (#3748)
williamsnell Apr 2, 2026
8f14d67
fix: numpy default NaT handling (#3863)
ilan-gold Apr 3, 2026
325439a
DOC: document threading.max_workers config option (#3852)
nuglifeleoji Apr 5, 2026
378ef10
chore: add zizmor to repo checks (#3837)
d-v-b Apr 5, 2026
dd86ac7
fix: convert zarr Array to numpy before __setitem__ async dispatch (#…
nuglifeleoji Apr 5, 2026
ca9bd3e
fix: auto-open ZipStore in list(), list_dir() and exists() (#3855)
nuglifeleoji Apr 6, 2026
d8df81b
chore: update pre-commit hooks (#3876)
pre-commit-ci[bot] Apr 6, 2026
4f23e8c
chore: fix release workflow triggers (#3794)
maxrjones Apr 6, 2026
57c82b4
Revert "chore: update pre-commit hooks" (#3877)
maxrjones Apr 6, 2026
00c1463
chore: fix typos (#3844)
DimitriPapadopoulos Apr 6, 2026
a4c4404
Update TEAM.md (#3879)
maxrjones Apr 7, 2026
ad99861
chore: separate benchmarks into a distinct CI job (#3873)
maxrjones Apr 7, 2026
373910c
feat: add experimental support for rectilinear (variable-sized) chunk…
maxrjones Apr 7, 2026
c966cfa
Pin mkdocs<2 (#3881)
maxrjones Apr 7, 2026
bd23984
chore: add a CI workflow that identifies unlinked types (#3882)
maxrjones Apr 8, 2026
85dfbcb
chore: prefix registry variable names with a single underscore (#3894)
d-v-b Apr 9, 2026
9681cf9
chore: update failure conditions for docs workflow (#3887)
maxrjones Apr 9, 2026
e6207b7
fix: simplify and fix codspeed workflow (#3895)
d-v-b Apr 13, 2026
9391f43
chore: remove deprecated convenience and creation modules (#3900)
d-v-b Apr 13, 2026
0ea15fd
chore: remove .create methods from arrays (#3903)
d-v-b Apr 14, 2026
2fbd30a
chore: clean up metadata tests (#3897)
d-v-b Apr 15, 2026
520344a
chore: expunge deprecated `zarr_version` parameter (#3901)
d-v-b Apr 16, 2026
ab88363
test: don't force rectilinear config true in the test (#3909)
ianhi Apr 16, 2026
dd5a321
chore: remove deprecated group methods (#3902)
d-v-b Apr 16, 2026
be0a7b8
feat/memory store registry (#3679)
d-v-b Apr 21, 2026
8217046
Implement support for `structured` and `struct` zarr-extension define…
BrianMichell Apr 21, 2026
866aa8d
fix: make upstream tests pass (#3920)
d-v-b Apr 22, 2026
0733a99
docs: add experimental API policy to contributing guide (#3853)
nuglifeleoji Apr 23, 2026
029c376
fix: apply path normalization to fsspec store (#3924)
d-v-b Apr 24, 2026
c4730be
Use f-strings (#3928)
DimitriPapadopoulos Apr 29, 2026
279d400
fix(storage): preserve leading slashes in FsspecStore.path (#3926)
d-v-b Apr 29, 2026
23e9635
feat: add cast_value and scale_offset codecs (#3874)
d-v-b Apr 30, 2026
ac667c1
chore: automate more of the release process (#3896)
maxrjones Apr 30, 2026
870fabd
chore/3.2.0 release notes (#3927)
d-v-b Apr 30, 2026
3ede5e8
docs: build 3.2.0 release notes (#3932)
d-v-b Apr 30, 2026
f8c0c5d
feat:metadata package (#3919)
d-v-b May 1, 2026
ad374b5
cast_value data type validation was checking the source data type ins…
d-v-b May 3, 2026
021662c
fix: use contextual arrayspec when validating / evolving codecs (#3941)
d-v-b May 4, 2026
37ae37b
fix: defer to fsspec for memory url scheme (#3944)
d-v-b May 5, 2026
85890b3
release : 3.2.1 release notes (#3942)
d-v-b May 5, 2026
6af3ea4
Allow s3 testing in face of "ambient" AWS creds (#3947)
chuckwondo May 6, 2026
b4ce0e9
ci: run all of xarray's tests in downstream workflow (#3940)
maxrjones May 6, 2026
3d354a8
chore(deps): bump the actions group across 1 directory with 12 update…
dependabot[bot] May 6, 2026
80d45ca
chore: update pre-commit hooks (#3943)
pre-commit-ci[bot] May 6, 2026
f9c53d5
chore(zarr-metadata): bump version to 0.1.1 (#3949)
d-v-b May 6, 2026
6e7f2f3
refactor: simplify internal chunk representation (#3899)
d-v-b May 7, 2026
d1a37e0
Merge branch 'main' into arrow-ipc-codec
d-v-b May 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ body:
value: |
```python
# /// script
# requires-python = ">=3.11"
# requires-python = ">=3.12"
# dependencies = [
# "zarr@git+https://github.com/zarr-developers/zarr-python.git@main",
# ]
Expand Down
51 changes: 22 additions & 29 deletions .github/ISSUE_TEMPLATE/release-checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,39 +16,17 @@ assignees: ''

**Before release**:

- [ ] Make sure the release branch (e.g., `3.1.x`) is up to date with any backports.
- [ ] Make sure that all pull requests which will be included in the release have been properly documented as changelog files in the [`changes/` directory](https://github.com/zarr-developers/zarr-python/tree/main/changes).
- [ ] Run ``towncrier build --version x.y.z`` to create the changelog, and commit the result to the release branch.
- [ ] Check [SPEC 0](https://scientific-python.org/specs/spec-0000/#support-window) to see if the minimum supported version of Python or NumPy needs bumping.
- [ ] Check to ensure that:
- [ ] Deprecated workarounds/codes/tests are removed. Run `grep "# TODO" **/*.py` to find all potential TODOs.
- [ ] All tests pass in the ["Tests" workflow](https://github.com/zarr-developers/zarr-python/actions/workflows/test.yml).
- [ ] All tests pass in the ["GPU Tests" workflow](https://github.com/zarr-developers/zarr-python/actions/workflows/gpu_test.yml).
- [ ] All tests pass in the ["Hypothesis" workflow](https://github.com/zarr-developers/zarr-python/actions/workflows/hypothesis.yaml).
- [ ] Check that downstream libraries work well (maintainers can make executive decisions about whether all checks are required for this release).
- [ ] numcodecs
- [ ] Xarray (@jhamman @dcherian @TomNicholas)
- Zarr's upstream compatibility is tested via the [Upstream Dev CI worklow](https://github.com/pydata/xarray/actions/workflows/upstream-dev-ci.yaml).
- Click on the most recent workflow and check that the `upstream-dev` job has run and passed. `upstream-dev` is not run on all all workflow runs.
- Check that the expected version of Zarr-Python was tested using the `Version Info` step of the `upstream-dev` job.
- If testing on a branch other than `main` is needed, open a PR modifying https://github.com/pydata/xarray/blob/90ee30943aedba66a37856b2332a41264e288c20/ci/install-upstream-wheels.sh#L56 and add the `run-upstream` label.
- [ ] Titiler.Xarray (@maxrjones)
- [Modify dependencies](https://github.com/developmentseed/titiler/blob/main/src/titiler/xarray/pyproject.toml) for titiler.xarray.
- Modify triggers for running [the test workflow](https://github.com/developmentseed/titiler/blob/61549f2de07b20cca8fb991cfcdc89b23e18ad05/.github/workflows/ci.yml#L5-L7).
- Push the branch to the repository and check for the actions for any failures.
- [ ] Verify that the latest CI workflows on `main` are passing: [Tests](https://github.com/zarr-developers/zarr-python/actions/workflows/test.yml), [GPU Tests](https://github.com/zarr-developers/zarr-python/actions/workflows/gpu_test.yml), [Hypothesis](https://github.com/zarr-developers/zarr-python/actions/workflows/hypothesis.yaml), [Docs](https://github.com/zarr-developers/zarr-python/actions/workflows/docs.yml), [Lint](https://github.com/zarr-developers/zarr-python/actions/workflows/lint.yml), [Wheels](https://github.com/zarr-developers/zarr-python/actions/workflows/releases.yml).
- [ ] Run the ["Prepare release" workflow](https://github.com/zarr-developers/zarr-python/actions/workflows/prepare_release.yml) with the target version. This will build the changelog and open a release PR with the `run-downstream` label.
- [ ] Verify that the [downstream tests](https://github.com/zarr-developers/zarr-python/actions/workflows/downstream.yml) (triggered automatically by the `run-downstream` label) pass on the release PR.
- [ ] Review the release PR and verify the changelog in `docs/release-notes.md` looks correct.
- [ ] Merge the release PR.

**Release**:

- [ ] Go to https://github.com/zarr-developers/zarr-python/releases.
- [ ] Click "Draft a new release".
- [ ] Choose a version number prefixed with a `v` (e.g. `v0.0.0`). For pre-releases, include the appropriate suffix (e.g. `v0.0.0a1` or `v0.0.0rc2`).
- [ ] Set the target branch to the release branch (e.g., `3.1.x`)
- [ ] Set the description of the release to: `See release notes https://zarr.readthedocs.io/en/stable/release-notes.html#release-0-0-0`, replacing the correct version numbers. For pre-release versions, the URL should omit the pre-release suffix, e.g. "a1" or "rc1".
- [ ] Click on "Generate release notes" to auto-fill the description.
- [ ] Make a release by clicking the 'Publish Release' button, this will automatically create a tag too.
- [ ] Verify that release workflows succeeded.
- [ ] The latest version is correct on [PyPI](https://pypi.org/project/zarr/).
- [ ] The stable version is correct on [ReadTheDocs](https://zarr.readthedocs.io/en/stable/).
- [ ] [Draft a new GitHub Release](https://github.com/zarr-developers/zarr-python/releases/new) with tag `vX.Y.Z` targeting `main`. Use "Generate release notes" for the description.
- [ ] Verify the release is published on [PyPI](https://pypi.org/project/zarr/) and [ReadTheDocs](https://zarr.readthedocs.io/en/stable/).

**After release**:

Expand All @@ -57,3 +35,18 @@ assignees: ''
---

- [ ] Party :tada:

---

<details>
<summary><strong>Releasing from a branch other than main</strong></summary>

In rare cases (e.g. patch releases for an older minor version), you may need to release from a dedicated release branch (e.g. `3.1.x`):

- Create the release branch from the appropriate tag if it doesn't already exist.
- Cherry-pick or backport the necessary commits onto the branch.
- Run `towncrier build --version x.y.z` and commit the result to the release branch instead of `main`.
- When drafting the GitHub Release, set the target to the release branch instead of `main`.
- After the release, ensure any relevant changelog updates are also reflected on `main`.

</details>
15 changes: 4 additions & 11 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,8 @@ updates:
actions:
patterns:
- "*"

# Updates for support/v2 branch
- package-ecosystem: "pip"
directory: "/"
target-branch: "support/v2"
schedule:
interval: "weekly"
groups:
requirements:
patterns:
- "*"
cooldown:
default-days: 7
- package-ecosystem: "github-actions"
directory: "/"
target-branch: "support/v2"
Expand All @@ -30,3 +21,5 @@ updates:
actions:
patterns:
- "*"
cooldown:
default-days: 7
14 changes: 12 additions & 2 deletions .github/workflows/check_changelogs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,27 @@ name: Check changelog entries

on:
pull_request:
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
check-changelogs:
name: Check changelog entries
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Install uv
uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7.1.2
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0

- name: Check changelog entries
run: uv run --no-sync python ci/check_changelog_entries.py
38 changes: 38 additions & 0 deletions .github/workflows/codspeed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CodSpeed Benchmarks

on:
schedule:
- cron: '0 9 * * 1' # Every Monday at 9am UTC
pull_request:
types: [labeled]
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
benchmarks:
name: Run benchmarks
runs-on: codspeed-macro
if: |
github.event_name == 'schedule' ||
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'benchmark'))
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
persist-credentials: false
- name: Install Hatch
uses: pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc
with:
version: '1.16.5'
- name: Run the benchmarks
uses: CodSpeedHQ/action@658a901452bb54c799643e060733b7afe9121b8d # v4.14.0
with:
mode: walltime
run: hatch run test.py3.12-minimal:pytest tests/benchmarks --codspeed
32 changes: 32 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Docs

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
docs:
name: Check docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
- run: uv sync --group docs
- run: uv run mkdocs build
env:
DISABLE_MKDOCS_2_WARNING: "true"
NO_MKDOCS_2_WARNING: "true"
- run: uv run python ci/check_unlinked_types.py
continue-on-error: true
112 changes: 112 additions & 0 deletions .github/workflows/downstream.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
name: Downstream

on:
workflow_dispatch:
pull_request:
types: [labeled, synchronize, opened, reopened]

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
xarray:
name: Xarray zarr backend tests
if: |
github.event_name == 'workflow_dispatch'
|| contains(github.event.pull_request.labels.*.name, 'run-downstream')
runs-on: ubuntu-latest
steps:
- name: Check out zarr-python
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
persist-credentials: false

- name: Check out xarray
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
repository: pydata/xarray
path: xarray
persist-credentials: false

- name: Set up pixi
uses: prefix-dev/setup-pixi@19eac09b398e3d0c747adc7921926a6d802df4da # v0.8.8
with:
manifest-path: xarray/pixi.toml

- name: Install zarr-python from branch
working-directory: xarray
run: pixi run -e test-py313 -- pip install --no-deps ..

- name: Show versions
working-directory: xarray
run: |
pixi run -e test-py313 -- python -c "
import zarr; print(f'zarr {zarr.__version__}')
import xarray; print(f'xarray {xarray.__version__}')
"

- name: Run xarray zarr backend tests
working-directory: xarray
run: |
pixi run -e test-py313 -- python -m pytest --no-header -q \
xarray/tests/test_backends.py \
xarray/tests/test_backends_api.py \
xarray/tests/test_backends_datatree.py

numcodecs:
name: numcodecs zarr3 codec tests
if: |
github.event_name == 'workflow_dispatch'
|| contains(github.event.pull_request.labels.*.name, 'run-downstream')
runs-on: ubuntu-latest
steps:
- name: Check out zarr-python
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
persist-credentials: false

- name: Check out numcodecs
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
repository: zarr-developers/numcodecs
fetch-depth: 0
path: numcodecs
submodules: recursive
persist-credentials: false

- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: '3.13'

- name: Install uv
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7

- name: Install numcodecs with test-zarr-main group
working-directory: numcodecs
run: |
uv venv
uv pip install --group dev
uv sync --group dev --group test-zarr-main
uv pip install --no-build-isolation -e .

- name: Override zarr-python with branch version
working-directory: numcodecs
run: uv pip install --no-deps ..

- name: Show versions
working-directory: numcodecs
run: |
uv run python -c "
import zarr; print(f'zarr {zarr.__version__}')
import numcodecs; print(f'numcodecs {numcodecs.__version__}')
"

- name: Run numcodecs zarr3 tests
working-directory: numcodecs
run: uv run python -m pytest -x --no-header -q tests/test_zarr3.py
39 changes: 24 additions & 15 deletions .github/workflows/gpu_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,29 @@ on:
env:
LD_LIBRARY_PATH: /usr/local/cuda/extras/CUPTI/lib64:/usr/local/cuda/lib64

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: py=${{ matrix.python-version }}, np=${{ matrix.numpy-version }}, deps=${{ matrix.dependency-set }}

name: py=${{ matrix.python-version }}
environment:
name: codecov-upload
deployment: false
runs-on: gpu-runner
strategy:
matrix:
python-version: ['3.11']
numpy-version: ['2.2']
dependency-set: ["minimal"]
python-version: ['3.12']

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0 # grab all branches and tags
persist-credentials: false
# - name: cuda-toolkit
# uses: Jimver/cuda-toolkit@v0.2.16
# id: cuda-toolkit
Expand All @@ -51,24 +55,29 @@ jobs:
echo $LD_LIBRARY_PATH
nvcc -V
- name: Set up Python
uses: actions/setup-python@v6
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install Hatch and CuPy
run: |
python -m pip install --upgrade pip
pip install hatch
- name: Install Hatch
uses: pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc
with:
version: '1.16.5'
- name: Set Up Hatch Env
env:
HATCH_ENV: gputest.py${{ matrix.python-version }}
run: |
hatch env create gputest.py${{ matrix.python-version }}-${{ matrix.numpy-version }}-${{ matrix.dependency-set }}
hatch env run -e gputest.py${{ matrix.python-version }}-${{ matrix.numpy-version }}-${{ matrix.dependency-set }} list-env
hatch env create "$HATCH_ENV"
hatch env run -e "$HATCH_ENV" list-env
- name: Run Tests
env:
HATCH_ENV: gputest.py${{ matrix.python-version }}
run: |
hatch env run --env gputest.py${{ matrix.python-version }}-${{ matrix.numpy-version }}-${{ matrix.dependency-set }} run-coverage-gpu
hatch env run --env "$HATCH_ENV" run-coverage

- name: Upload coverage
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # v5.3.1
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: gpu
verbose: true # optional (default = false)
Loading
Loading