@@ -12,6 +12,9 @@ concurrency:
12
12
group : ${{ github.workflow }}-${{ github.ref }}
13
13
cancel-in-progress : true
14
14
15
+ env :
16
+ FORCE_COLOR : 3
17
+
15
18
jobs :
16
19
detect-ci-trigger :
17
20
name : detect ci trigger
@@ -35,14 +38,13 @@ jobs:
35
38
runs-on : " ubuntu-latest"
36
39
needs : detect-ci-trigger
37
40
if : needs.detect-ci-trigger.outputs.triggered == 'false'
41
+
38
42
defaults :
39
43
run :
40
44
shell : bash -l {0}
41
-
42
45
env :
43
46
CONDA_ENV_FILE : ci/requirements/environment.yml
44
- PYTHON_VERSION : " 3.11"
45
-
47
+ PYTHON_VERSION : " 3.12"
46
48
steps :
47
49
- uses : actions/checkout@v4
48
50
with :
53
55
echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
54
56
55
57
- name : Setup micromamba
56
- uses : mamba-org/setup-micromamba@v1
58
+ uses : mamba-org/setup-micromamba@v2
57
59
with :
58
60
environment-file : ${{env.CONDA_ENV_FILE}}
59
61
environment-name : xarray-tests
79
81
#
80
82
# If dependencies emit warnings we can't do anything about, add ignores to
81
83
# `xarray/tests/__init__.py`.
82
- # [MHS, 01/25/2024] Skip datatree_ documentation remove after #8572
83
- python -m pytest --doctest-modules xarray --ignore xarray/tests --ignore xarray/datatree_ -Werror
84
+ python -m pytest --doctest-modules xarray --ignore xarray/tests -Werror
84
85
85
86
mypy :
86
87
name : Mypy
91
92
shell : bash -l {0}
92
93
env :
93
94
CONDA_ENV_FILE : ci/requirements/environment.yml
94
- PYTHON_VERSION : " 3.11 "
95
+ PYTHON_VERSION : " 3.12 "
95
96
96
97
steps :
97
98
- uses : actions/checkout@v4
@@ -102,7 +103,7 @@ jobs:
102
103
run : |
103
104
echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
104
105
- name : Setup micromamba
105
- uses : mamba-org/setup-micromamba@v1
106
+ uses : mamba-org/setup-micromamba@v2
106
107
with :
107
108
environment-file : ${{env.CONDA_ENV_FILE}}
108
109
environment-name : xarray-tests
@@ -121,31 +122,31 @@ jobs:
121
122
python xarray/util/print_versions.py
122
123
- name : Install mypy
123
124
run : |
124
- python -m pip install "mypy<1.9 " --force-reinstall
125
+ python -m pip install "mypy==1.13 " --force-reinstall
125
126
126
127
- name : Run mypy
127
128
run : |
128
- python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report xarray/
129
+ python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report
129
130
130
131
- name : Upload mypy coverage to Codecov
131
- uses : codecov/codecov-action@v4.1 .0
132
+ uses : codecov/codecov-action@v4.6 .0
132
133
with :
133
134
file : mypy_report/cobertura.xml
134
135
flags : mypy
135
136
env_vars : PYTHON_VERSION
136
137
name : codecov-umbrella
137
138
fail_ci_if_error : false
138
139
139
- mypy39 :
140
- name : Mypy 3.9
140
+ mypy-min :
141
+ name : Mypy 3.10
141
142
runs-on : " ubuntu-latest"
142
143
needs : detect-ci-trigger
143
144
defaults :
144
145
run :
145
146
shell : bash -l {0}
146
147
env :
147
148
CONDA_ENV_FILE : ci/requirements/environment.yml
148
- PYTHON_VERSION : " 3.9 "
149
+ PYTHON_VERSION : " 3.10 "
149
150
150
151
steps :
151
152
- uses : actions/checkout@v4
@@ -156,7 +157,7 @@ jobs:
156
157
run : |
157
158
echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
158
159
- name : Setup micromamba
159
- uses : mamba-org/setup-micromamba@v1
160
+ uses : mamba-org/setup-micromamba@v2
160
161
with :
161
162
environment-file : ${{env.CONDA_ENV_FILE}}
162
163
environment-name : xarray-tests
@@ -175,38 +176,36 @@ jobs:
175
176
python xarray/util/print_versions.py
176
177
- name : Install mypy
177
178
run : |
178
- python -m pip install "mypy<1.9 " --force-reinstall
179
+ python -m pip install "mypy==1.13 " --force-reinstall
179
180
180
181
- name : Run mypy
181
182
run : |
182
- python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report xarray/
183
+ python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report
183
184
184
185
- name : Upload mypy coverage to Codecov
185
- uses : codecov/codecov-action@v4.1 .0
186
+ uses : codecov/codecov-action@v4.6 .0
186
187
with :
187
188
file : mypy_report/cobertura.xml
188
- flags : mypy39
189
+ flags : mypy-min
189
190
env_vars : PYTHON_VERSION
190
191
name : codecov-umbrella
191
192
fail_ci_if_error : false
192
193
193
-
194
-
195
194
pyright :
196
195
name : Pyright
197
196
runs-on : " ubuntu-latest"
198
197
needs : detect-ci-trigger
199
198
if : |
200
- always()
201
- && (
202
- contains( github.event.pull_request.labels.*.name, 'run-pyright')
203
- )
199
+ always()
200
+ && (
201
+ contains( github.event.pull_request.labels.*.name, 'run-pyright')
202
+ )
204
203
defaults :
205
204
run :
206
205
shell : bash -l {0}
207
206
env :
208
207
CONDA_ENV_FILE : ci/requirements/environment.yml
209
- PYTHON_VERSION : " 3.10 "
208
+ PYTHON_VERSION : " 3.12 "
210
209
211
210
steps :
212
211
- uses : actions/checkout@v4
@@ -217,7 +216,7 @@ jobs:
217
216
run : |
218
217
echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
219
218
- name : Setup micromamba
220
- uses : mamba-org/setup-micromamba@v1
219
+ uses : mamba-org/setup-micromamba@v2
221
220
with :
222
221
environment-file : ${{env.CONDA_ENV_FILE}}
223
222
environment-name : xarray-tests
@@ -243,7 +242,7 @@ jobs:
243
242
python -m pyright xarray/
244
243
245
244
- name : Upload pyright coverage to Codecov
246
- uses : codecov/codecov-action@v4.1 .0
245
+ uses : codecov/codecov-action@v4.6 .0
247
246
with :
248
247
file : pyright_report/cobertura.xml
249
248
flags : pyright
@@ -252,20 +251,20 @@ jobs:
252
251
fail_ci_if_error : false
253
252
254
253
pyright39 :
255
- name : Pyright 3.9
254
+ name : Pyright 3.10
256
255
runs-on : " ubuntu-latest"
257
256
needs : detect-ci-trigger
258
257
if : |
259
- always()
260
- && (
261
- contains( github.event.pull_request.labels.*.name, 'run-pyright')
262
- )
258
+ always()
259
+ && (
260
+ contains( github.event.pull_request.labels.*.name, 'run-pyright')
261
+ )
263
262
defaults :
264
263
run :
265
264
shell : bash -l {0}
266
265
env :
267
266
CONDA_ENV_FILE : ci/requirements/environment.yml
268
- PYTHON_VERSION : " 3.9 "
267
+ PYTHON_VERSION : " 3.10 "
269
268
270
269
steps :
271
270
- uses : actions/checkout@v4
@@ -276,7 +275,7 @@ jobs:
276
275
run : |
277
276
echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
278
277
- name : Setup micromamba
279
- uses : mamba-org/setup-micromamba@v1
278
+ uses : mamba-org/setup-micromamba@v2
280
279
with :
281
280
environment-file : ${{env.CONDA_ENV_FILE}}
282
281
environment-name : xarray-tests
@@ -302,16 +301,14 @@ jobs:
302
301
python -m pyright xarray/
303
302
304
303
- name : Upload pyright coverage to Codecov
305
- uses : codecov/codecov-action@v4.1 .0
304
+ uses : codecov/codecov-action@v4.6 .0
306
305
with :
307
306
file : pyright_report/cobertura.xml
308
307
flags : pyright39
309
308
env_vars : PYTHON_VERSION
310
309
name : codecov-umbrella
311
310
fail_ci_if_error : false
312
311
313
-
314
-
315
312
min-version-policy :
316
313
name : Minimum Version Policy
317
314
runs-on : " ubuntu-latest"
@@ -327,11 +324,11 @@ jobs:
327
324
fetch-depth : 0 # Fetch all history for all branches and tags.
328
325
329
326
- name : Setup micromamba
330
- uses : mamba-org/setup-micromamba@v1
327
+ uses : mamba-org/setup-micromamba@v2
331
328
with :
332
329
environment-name : xarray-tests
333
330
create-args : >-
334
- python=3.11
331
+ python=3.12
335
332
pyyaml
336
333
conda
337
334
python-dateutil
0 commit comments