@@ -55,13 +55,12 @@ jobs:
55
55
echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
56
56
57
57
- name : Setup micromamba
58
- uses : mamba-org/setup-micromamba@v1
58
+ uses : mamba-org/setup-micromamba@v2
59
59
with :
60
60
environment-file : ${{env.CONDA_ENV_FILE}}
61
61
environment-name : xarray-tests
62
62
create-args : >-
63
63
python=${{env.PYTHON_VERSION}}
64
- conda
65
64
cache-environment : true
66
65
cache-environment-key : " ${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
67
66
70
69
python -m pip install --no-deps -e .
71
70
- name : Version info
72
71
run : |
73
- conda info -a
74
- conda list
75
72
python xarray/util/print_versions.py
76
73
- name : Run doctests
77
74
run : |
81
78
#
82
79
# If dependencies emit warnings we can't do anything about, add ignores to
83
80
# `xarray/tests/__init__.py`.
84
- # [MHS, 01/25/2024] Skip datatree_ documentation remove after #8572
85
- python -m pytest --doctest-modules xarray --ignore xarray/tests --ignore xarray/datatree_ -Werror
81
+ python -m pytest --doctest-modules xarray --ignore xarray/tests -Werror
86
82
87
83
mypy :
88
84
name : Mypy
93
89
shell : bash -l {0}
94
90
env :
95
91
CONDA_ENV_FILE : ci/requirements/environment.yml
96
- PYTHON_VERSION : " 3.11 "
92
+ PYTHON_VERSION : " 3.12 "
97
93
98
94
steps :
99
95
- uses : actions/checkout@v4
@@ -104,33 +100,30 @@ jobs:
104
100
run : |
105
101
echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
106
102
- name : Setup micromamba
107
- uses : mamba-org/setup-micromamba@v1
103
+ uses : mamba-org/setup-micromamba@v2
108
104
with :
109
105
environment-file : ${{env.CONDA_ENV_FILE}}
110
106
environment-name : xarray-tests
111
107
create-args : >-
112
108
python=${{env.PYTHON_VERSION}}
113
- conda
114
109
cache-environment : true
115
110
cache-environment-key : " ${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
116
111
- name : Install xarray
117
112
run : |
118
113
python -m pip install --no-deps -e .
119
114
- name : Version info
120
115
run : |
121
- conda info -a
122
- conda list
123
116
python xarray/util/print_versions.py
124
117
- name : Install mypy
125
118
run : |
126
- python -m pip install "mypy" --force-reinstall
119
+ python -m pip install "mypy==1.13 " --force-reinstall
127
120
128
121
- name : Run mypy
129
122
run : |
130
123
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report
131
124
132
125
- name : Upload mypy coverage to Codecov
133
- uses : codecov/codecov-action@v4.5 .0
126
+ uses : codecov/codecov-action@v4.6 .0
134
127
with :
135
128
file : mypy_report/cobertura.xml
136
129
flags : mypy
@@ -158,33 +151,30 @@ jobs:
158
151
run : |
159
152
echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
160
153
- name : Setup micromamba
161
- uses : mamba-org/setup-micromamba@v1
154
+ uses : mamba-org/setup-micromamba@v2
162
155
with :
163
156
environment-file : ${{env.CONDA_ENV_FILE}}
164
157
environment-name : xarray-tests
165
158
create-args : >-
166
159
python=${{env.PYTHON_VERSION}}
167
- conda
168
160
cache-environment : true
169
161
cache-environment-key : " ${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
170
162
- name : Install xarray
171
163
run : |
172
164
python -m pip install --no-deps -e .
173
165
- name : Version info
174
166
run : |
175
- conda info -a
176
- conda list
177
167
python xarray/util/print_versions.py
178
168
- name : Install mypy
179
169
run : |
180
- python -m pip install "mypy" --force-reinstall
170
+ python -m pip install "mypy==1.13 " --force-reinstall
181
171
182
172
- name : Run mypy
183
173
run : |
184
174
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report
185
175
186
176
- name : Upload mypy coverage to Codecov
187
- uses : codecov/codecov-action@v4.5 .0
177
+ uses : codecov/codecov-action@v4.6 .0
188
178
with :
189
179
file : mypy_report/cobertura.xml
190
180
flags : mypy-min
@@ -217,22 +207,19 @@ jobs:
217
207
run : |
218
208
echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
219
209
- name : Setup micromamba
220
- uses : mamba-org/setup-micromamba@v1
210
+ uses : mamba-org/setup-micromamba@v2
221
211
with :
222
212
environment-file : ${{env.CONDA_ENV_FILE}}
223
213
environment-name : xarray-tests
224
214
create-args : >-
225
215
python=${{env.PYTHON_VERSION}}
226
- conda
227
216
cache-environment : true
228
217
cache-environment-key : " ${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
229
218
- name : Install xarray
230
219
run : |
231
220
python -m pip install --no-deps -e .
232
221
- name : Version info
233
222
run : |
234
- conda info -a
235
- conda list
236
223
python xarray/util/print_versions.py
237
224
- name : Install pyright
238
225
run : |
@@ -243,7 +230,7 @@ jobs:
243
230
python -m pyright xarray/
244
231
245
232
- name : Upload pyright coverage to Codecov
246
- uses : codecov/codecov-action@v4.5 .0
233
+ uses : codecov/codecov-action@v4.6 .0
247
234
with :
248
235
file : pyright_report/cobertura.xml
249
236
flags : pyright
@@ -276,22 +263,19 @@ jobs:
276
263
run : |
277
264
echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
278
265
- name : Setup micromamba
279
- uses : mamba-org/setup-micromamba@v1
266
+ uses : mamba-org/setup-micromamba@v2
280
267
with :
281
268
environment-file : ${{env.CONDA_ENV_FILE}}
282
269
environment-name : xarray-tests
283
270
create-args : >-
284
271
python=${{env.PYTHON_VERSION}}
285
- conda
286
272
cache-environment : true
287
273
cache-environment-key : " ${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
288
274
- name : Install xarray
289
275
run : |
290
276
python -m pip install --no-deps -e .
291
277
- name : Version info
292
278
run : |
293
- conda info -a
294
- conda list
295
279
python xarray/util/print_versions.py
296
280
- name : Install pyright
297
281
run : |
@@ -302,7 +286,7 @@ jobs:
302
286
python -m pyright xarray/
303
287
304
288
- name : Upload pyright coverage to Codecov
305
- uses : codecov/codecov-action@v4.5 .0
289
+ uses : codecov/codecov-action@v4.6 .0
306
290
with :
307
291
file : pyright_report/cobertura.xml
308
292
flags : pyright39
@@ -325,14 +309,17 @@ jobs:
325
309
fetch-depth : 0 # Fetch all history for all branches and tags.
326
310
327
311
- name : Setup micromamba
328
- uses : mamba-org/setup-micromamba@v1
312
+ uses : mamba-org/setup-micromamba@v2
329
313
with :
314
+ # run with micromamba 1.5.10 together with conda
315
+ # conda.api is not API compatible with libmambapy
316
+ micromamba-version : " 1.5.10-0"
330
317
environment-name : xarray-tests
331
318
create-args : >-
332
319
python=3.12
333
320
pyyaml
334
- conda
335
321
python-dateutil
322
+ conda
336
323
337
324
- name : All-deps minimum versions policy
338
325
run : |
0 commit comments