Skip to content

Commit bb17a80

Browse files
d-v-bclaude
andauthored
fix(ci): run xarray's backend tests from their new package (zarr-developers#4491)
* fix(ci): run xarray's backend tests from their new package pydata/xarray#11633 split xarray/tests/test_backends.py and the other test_backends*.py modules into the xarray/tests/backends package, so the downstream job failed to collect any tests. Run the package instead. Assisted-by: ClaudeCode:claude-fable-5-1 Co-Authored-By: Claude Fable 5.1 <[email protected]> * docs: add changelog fragment for zarr-developers#4491 Assisted-by: ClaudeCode:claude-fable-5-1 Co-Authored-By: Claude Fable 5.1 <[email protected]> --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
1 parent b05a91f commit bb17a80

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

‎.github/workflows/downstream.yml‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,16 @@ jobs:
6868
import xarray; print(f'xarray {xarray.__version__}')
6969
"
7070
71-
- name: Run xarray zarr backend tests
71+
# xarray keeps its backend tests in the `xarray/tests/backends` package
72+
# (pydata/xarray#11633 split the former `test_backends*.py` modules into
73+
# it). Running the package covers the zarr store, region/append, API and
74+
# DataTree tests; the other backends are installed by the `io` extra, so
75+
# their tests run too, as they did before the split.
76+
- name: Run xarray backend tests
7277
working-directory: xarray
7378
run: |
7479
uv run --no-sync python -m pytest --no-header -q \
75-
xarray/tests/test_backends.py \
76-
xarray/tests/test_backends_api.py \
77-
xarray/tests/test_backends_datatree.py
80+
xarray/tests/backends
7881
7982
numcodecs:
8083
name: numcodecs zarr3 codec tests

‎changes/4491.misc.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Run the downstream xarray CI job against the `xarray/tests/backends` package, where pydata/xarray#11633 moved the backend tests; the job had been failing to collect any tests.

0 commit comments

Comments
 (0)