@@ -55,13 +55,12 @@ jobs:
5555 echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
5656
5757 - name : Setup micromamba
58- uses : mamba-org/setup-micromamba@v1
58+ uses : mamba-org/setup-micromamba@v2
5959 with :
6060 environment-file : ${{env.CONDA_ENV_FILE}}
6161 environment-name : xarray-tests
6262 create-args : >-
6363 python=${{env.PYTHON_VERSION}}
64- conda
6564 cache-environment : true
6665 cache-environment-key : " ${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
6766
7069 python -m pip install --no-deps -e .
7170 - name : Version info
7271 run : |
73- conda info -a
74- conda list
7572 python xarray/util/print_versions.py
7673 - name : Run doctests
7774 run : |
8178 #
8279 # If dependencies emit warnings we can't do anything about, add ignores to
8380 # `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
8682
8783 mypy :
8884 name : Mypy
9389 shell : bash -l {0}
9490 env :
9591 CONDA_ENV_FILE : ci/requirements/environment.yml
96- PYTHON_VERSION : " 3.11 "
92+ PYTHON_VERSION : " 3.12 "
9793
9894 steps :
9995 - uses : actions/checkout@v4
@@ -104,33 +100,30 @@ jobs:
104100 run : |
105101 echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
106102 - name : Setup micromamba
107- uses : mamba-org/setup-micromamba@v1
103+ uses : mamba-org/setup-micromamba@v2
108104 with :
109105 environment-file : ${{env.CONDA_ENV_FILE}}
110106 environment-name : xarray-tests
111107 create-args : >-
112108 python=${{env.PYTHON_VERSION}}
113- conda
114109 cache-environment : true
115110 cache-environment-key : " ${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
116111 - name : Install xarray
117112 run : |
118113 python -m pip install --no-deps -e .
119114 - name : Version info
120115 run : |
121- conda info -a
122- conda list
123116 python xarray/util/print_versions.py
124117 - name : Install mypy
125118 run : |
126- python -m pip install "mypy" --force-reinstall
119+ python -m pip install "mypy==1.13 " --force-reinstall
127120
128121 - name : Run mypy
129122 run : |
130123 python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report
131124
132125 - name : Upload mypy coverage to Codecov
133- uses : codecov/codecov-action@v4.5 .0
126+ uses : codecov/codecov-action@v4.6 .0
134127 with :
135128 file : mypy_report/cobertura.xml
136129 flags : mypy
@@ -158,33 +151,30 @@ jobs:
158151 run : |
159152 echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
160153 - name : Setup micromamba
161- uses : mamba-org/setup-micromamba@v1
154+ uses : mamba-org/setup-micromamba@v2
162155 with :
163156 environment-file : ${{env.CONDA_ENV_FILE}}
164157 environment-name : xarray-tests
165158 create-args : >-
166159 python=${{env.PYTHON_VERSION}}
167- conda
168160 cache-environment : true
169161 cache-environment-key : " ${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
170162 - name : Install xarray
171163 run : |
172164 python -m pip install --no-deps -e .
173165 - name : Version info
174166 run : |
175- conda info -a
176- conda list
177167 python xarray/util/print_versions.py
178168 - name : Install mypy
179169 run : |
180- python -m pip install "mypy" --force-reinstall
170+ python -m pip install "mypy==1.13 " --force-reinstall
181171
182172 - name : Run mypy
183173 run : |
184174 python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report
185175
186176 - name : Upload mypy coverage to Codecov
187- uses : codecov/codecov-action@v4.5 .0
177+ uses : codecov/codecov-action@v4.6 .0
188178 with :
189179 file : mypy_report/cobertura.xml
190180 flags : mypy-min
@@ -217,22 +207,19 @@ jobs:
217207 run : |
218208 echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
219209 - name : Setup micromamba
220- uses : mamba-org/setup-micromamba@v1
210+ uses : mamba-org/setup-micromamba@v2
221211 with :
222212 environment-file : ${{env.CONDA_ENV_FILE}}
223213 environment-name : xarray-tests
224214 create-args : >-
225215 python=${{env.PYTHON_VERSION}}
226- conda
227216 cache-environment : true
228217 cache-environment-key : " ${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
229218 - name : Install xarray
230219 run : |
231220 python -m pip install --no-deps -e .
232221 - name : Version info
233222 run : |
234- conda info -a
235- conda list
236223 python xarray/util/print_versions.py
237224 - name : Install pyright
238225 run : |
@@ -243,7 +230,7 @@ jobs:
243230 python -m pyright xarray/
244231
245232 - name : Upload pyright coverage to Codecov
246- uses : codecov/codecov-action@v4.5 .0
233+ uses : codecov/codecov-action@v4.6 .0
247234 with :
248235 file : pyright_report/cobertura.xml
249236 flags : pyright
@@ -276,22 +263,19 @@ jobs:
276263 run : |
277264 echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
278265 - name : Setup micromamba
279- uses : mamba-org/setup-micromamba@v1
266+ uses : mamba-org/setup-micromamba@v2
280267 with :
281268 environment-file : ${{env.CONDA_ENV_FILE}}
282269 environment-name : xarray-tests
283270 create-args : >-
284271 python=${{env.PYTHON_VERSION}}
285- conda
286272 cache-environment : true
287273 cache-environment-key : " ${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
288274 - name : Install xarray
289275 run : |
290276 python -m pip install --no-deps -e .
291277 - name : Version info
292278 run : |
293- conda info -a
294- conda list
295279 python xarray/util/print_versions.py
296280 - name : Install pyright
297281 run : |
@@ -302,7 +286,7 @@ jobs:
302286 python -m pyright xarray/
303287
304288 - name : Upload pyright coverage to Codecov
305- uses : codecov/codecov-action@v4.5 .0
289+ uses : codecov/codecov-action@v4.6 .0
306290 with :
307291 file : pyright_report/cobertura.xml
308292 flags : pyright39
@@ -325,14 +309,17 @@ jobs:
325309 fetch-depth : 0 # Fetch all history for all branches and tags.
326310
327311 - name : Setup micromamba
328- uses : mamba-org/setup-micromamba@v1
312+ uses : mamba-org/setup-micromamba@v2
329313 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"
330317 environment-name : xarray-tests
331318 create-args : >-
332319 python=3.12
333320 pyyaml
334- conda
335321 python-dateutil
322+ conda
336323
337324 - name : All-deps minimum versions policy
338325 run : |
0 commit comments