diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8813e4da4..b22c249c7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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