@@ -16,7 +16,7 @@ concurrency:
1616
1717jobs :
1818 test :
19- name : Test (${{ matrix.python-version }}, ${{ matrix.os }})
19+ name : Test (${{matrix.env}}, ${{ matrix.python-version }}, ${{ matrix.os }})
2020 runs-on : ${{ matrix.os }}
2121 defaults :
2222 run :
@@ -25,10 +25,18 @@ jobs:
2525 fail-fast : false
2626 matrix :
2727 os : ["ubuntu-latest"]
28+ env : ["environment"]
2829 python-version : ["3.9", "3.12"]
2930 include :
3031 - os : " windows-latest"
32+ env : " environment"
3133 python-version : " 3.12"
34+ - os : " ubuntu-latest"
35+ env : " no-dask" # "no-xarray", "no-numba"
36+ python-version : " 3.12"
37+ - os : " ubuntu-latest"
38+ env : " minimal-requirements"
39+ python-version : " 3.9"
3240 steps :
3341 - uses : actions/checkout@v4
3442 with :
3947 - name : Set up conda environment
4048 uses : mamba-org/setup-micromamba@v1
4149 with :
42- environment-file : ci/environment .yml
50+ environment-file : ci/${{ matrix.env }} .yml
4351 environment-name : flox-tests
4452 init-shell : bash
4553 cache-environment : true
8189 path : .hypothesis/
8290 key : cache-hypothesis-${{ runner.os }}-${{ matrix.python-version }}-${{ github.run_id }}
8391
84- optional-deps :
85- name : ${{ matrix.env }}
86- runs-on : " ubuntu-latest"
87- defaults :
88- run :
89- shell : bash -l {0}
90- strategy :
91- fail-fast : false
92- matrix :
93- python-version : ["3.12"]
94- env : ["no-dask"] # "no-xarray", "no-numba"
95- include :
96- - env : " minimal-requirements"
97- python-version : " 3.9"
98- steps :
99- - uses : actions/checkout@v4
100- with :
101- fetch-depth : 0 # Fetch all history for all branches and tags.
102- - name : Set up conda environment
103- uses : mamba-org/setup-micromamba@v1
104- with :
105- environment-file : ci/${{ matrix.env }}.yml
106- environment-name : flox-tests
107- init-shell : bash
108- cache-environment : true
109- create-args : |
110- python=${{ matrix.python-version }}
111- - name : Install flox
112- run : |
113- python -m pip install --no-deps -e .
114- - name : Run tests
115- run : |
116- python -m pytest -n auto --cov=./ --cov-report=xml
117- - name : Upload code coverage to Codecov
118- 119- with :
120- file : ./coverage.xml
121- flags : unittests
122- env_vars : RUNNER_OS
123- name : codecov-umbrella
124- fail_ci_if_error : false
125-
12692 xarray-groupby :
12793 name : xarray-groupby
12894 runs-on : ubuntu-latest
0 commit comments