Skip to content

Commit 61b134b

Browse files
authored
Add xarray groupby test (#121)
* Add xarray groupby test * syntax * fix install * to-revert * fix * also revert * fix install * ref instead of ref_nae * activate env * Revert "activate env" This reverts commit e18ba3d. * activate * activate again * change shell * try again * Revert "also revert" This reverts commit e4f4297. * Revert "to-revert" This reverts commit a86fcd4.
1 parent d6065be commit 61b134b

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,46 @@ jobs:
9797
shell: bash -l {0}
9898
run: |
9999
pytest -n 2
100+
101+
xarray-groupby:
102+
name: xarray-groupby
103+
runs-on: ubuntu-latest
104+
defaults:
105+
run:
106+
shell: bash -l {0}
107+
steps:
108+
- uses: actions/checkout@v3
109+
with:
110+
repository: 'pydata/xarray'
111+
fetch-depth: 0 # Fetch all history for all branches and tags.
112+
- name: Set up conda environment
113+
uses: mamba-org/provision-with-micromamba@de032af7fb3675649f3d4bbdda85178ba412ee41
114+
with:
115+
environment-file: ci/requirements/environment.yml
116+
environment-name: xarray-tests
117+
extra-specs: |
118+
python="3.10"
119+
- name: Install xarray
120+
run: |
121+
python -m pip install --no-deps .
122+
- name: Install upstream flox
123+
run: |
124+
python -m pip install --no-deps \
125+
git+https://github.com/dcherian/flox.git@${{ github.ref }}
126+
- name: Version info
127+
run: |
128+
conda info -a
129+
conda list
130+
python xarray/util/print_versions.py
131+
- name: import xarray
132+
run: |
133+
python -c 'import xarray'
134+
- name: import flox
135+
run: |
136+
python -c 'import flox'
137+
- name: Run Tests
138+
if: success()
139+
id: status
140+
run: |
141+
set -euo pipefail
142+
python -m pytest -n auto xarray/tests/test_groupby.py

0 commit comments

Comments
 (0)