@@ -16,7 +16,7 @@ concurrency:
16
16
17
17
jobs :
18
18
test :
19
- name : Test (${{ matrix.python-version }}, ${{ matrix.os }})
19
+ name : Test (${{matrix.env}}, ${{ matrix.python-version }}, ${{ matrix.os }})
20
20
runs-on : ${{ matrix.os }}
21
21
defaults :
22
22
run :
@@ -25,10 +25,18 @@ jobs:
25
25
fail-fast : false
26
26
matrix :
27
27
os : ["ubuntu-latest"]
28
+ env : ["environment"]
28
29
python-version : ["3.9", "3.12"]
29
30
include :
30
31
- os : " windows-latest"
32
+ env : " environment"
31
33
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"
32
40
steps :
33
41
- uses : actions/checkout@v4
34
42
with :
39
47
- name : Set up conda environment
40
48
uses : mamba-org/setup-micromamba@v1
41
49
with :
42
- environment-file : ci/environment .yml
50
+ environment-file : ci/${{ matrix.env }} .yml
43
51
environment-name : flox-tests
44
52
init-shell : bash
45
53
cache-environment : true
81
89
path : .hypothesis/
82
90
key : cache-hypothesis-${{ runner.os }}-${{ matrix.python-version }}-${{ github.run_id }}
83
91
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
-
126
92
xarray-groupby :
127
93
name : xarray-groupby
128
94
runs-on : ubuntu-latest
0 commit comments