Skip to content

Add xarray groupby test #121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Jul 9, 2022
43 changes: 43 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,46 @@ jobs:
shell: bash -l {0}
run: |
pytest -n 2

xarray-groupby:
name: xarray-groupby
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
with:
repository: 'pydata/xarray'
fetch-depth: 0 # Fetch all history for all branches and tags.
- name: Set up conda environment
uses: mamba-org/provision-with-micromamba@de032af7fb3675649f3d4bbdda85178ba412ee41
with:
environment-file: ci/requirements/environment.yml
environment-name: xarray-tests
extra-specs: |
python="3.10"
- name: Install xarray
run: |
python -m pip install --no-deps .
- name: Install upstream flox
run: |
python -m pip install --no-deps \
git+https://github.com/dcherian/flox.git@${{ github.ref }}
- name: Version info
run: |
conda info -a
conda list
python xarray/util/print_versions.py
- name: import xarray
run: |
python -c 'import xarray'
- name: import flox
run: |
python -c 'import flox'
- name: Run Tests
if: success()
id: status
run: |
set -euo pipefail
python -m pytest -n auto xarray/tests/test_groupby.py