Skip to content

Commit b4ce0e9

Browse files
maxrjonesd-v-b
andauthored
ci: run all of xarray's tests in downstream workflow (#3940)
Co-authored-by: Davis Bennett <davis.v.bennett@gmail.com>
1 parent 6af3ea4 commit b4ce0e9

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/downstream.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Downstream
33
on:
44
workflow_dispatch:
55
pull_request:
6-
types: [labeled]
6+
types: [labeled, synchronize, opened, reopened]
77

88
permissions:
99
contents: read
@@ -15,7 +15,9 @@ concurrency:
1515
jobs:
1616
xarray:
1717
name: Xarray zarr backend tests
18-
if: github.event_name == 'workflow_dispatch' || github.event.label.name == 'run-downstream'
18+
if: |
19+
github.event_name == 'workflow_dispatch'
20+
|| contains(github.event.pull_request.labels.*.name, 'run-downstream')
1921
runs-on: ubuntu-latest
2022
steps:
2123
- name: Check out zarr-python
@@ -51,14 +53,16 @@ jobs:
5153
- name: Run xarray zarr backend tests
5254
working-directory: xarray
5355
run: |
54-
pixi run -e test-py313 -- python -m pytest -x --no-header -q \
55-
xarray/tests/test_backends.py -k zarr \
56-
xarray/tests/test_backends_api.py -k zarr \
57-
xarray/tests/test_backends_datatree.py -k zarr
56+
pixi run -e test-py313 -- python -m pytest --no-header -q \
57+
xarray/tests/test_backends.py \
58+
xarray/tests/test_backends_api.py \
59+
xarray/tests/test_backends_datatree.py
5860
5961
numcodecs:
6062
name: numcodecs zarr3 codec tests
61-
if: github.event_name == 'workflow_dispatch' || github.event.label.name == 'run-downstream'
63+
if: |
64+
github.event_name == 'workflow_dispatch'
65+
|| contains(github.event.pull_request.labels.*.name, 'run-downstream')
6266
runs-on: ubuntu-latest
6367
steps:
6468
- name: Check out zarr-python

0 commit comments

Comments
 (0)