File tree 3 files changed +48
-0
lines changed
3 files changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,50 @@ jobs:
157
157
run : |
158
158
python -m pytest --doctest-modules xarray --ignore xarray/tests
159
159
160
+ typing :
161
+ name : Type checking (mypy)
162
+ runs-on : " ubuntu-latest"
163
+ needs : detect-ci-trigger
164
+ if : false && needs.detect-ci-trigger.outputs.triggered == 'false'
165
+ defaults :
166
+ run :
167
+ shell : bash -l {0}
168
+
169
+ steps :
170
+ - name : Cancel previous runs
171
+
172
+ with :
173
+ access_token : ${{ github.token }}
174
+ - uses : actions/checkout@v2
175
+ with :
176
+ fetch-depth : 0 # Fetch all history for all branches and tags.
177
+ - uses : conda-incubator/setup-miniconda@v2
178
+ with :
179
+ channels : conda-forge
180
+ channel-priority : strict
181
+ mamba-version : " *"
182
+ activate-environment : xarray-tests
183
+ auto-update-conda : false
184
+ python-version : " 3.8"
185
+
186
+ - name : Install conda dependencies
187
+ run : |
188
+ mamba env update -f ci/requirements/environment.yml
189
+ - name : Install mypy
190
+ run : |
191
+ mamba install --file ci/requirements/mypy_only
192
+ - name : Install xarray
193
+ run : |
194
+ python -m pip install --no-deps -e .
195
+ - name : Version info
196
+ run : |
197
+ conda info -a
198
+ conda list
199
+ python xarray/util/print_versions.py
200
+ - name : Run mypy
201
+ run : |
202
+ python -m mypy xarray
203
+
160
204
min-version-policy :
161
205
name : Minimum Version Policy
162
206
runs-on : " ubuntu-latest"
Original file line number Diff line number Diff line change 30
30
# - id: velin
31
31
# args: ["--write", "--compact"]
32
32
- repo : https://github.com/pre-commit/mirrors-mypy
33
+ # version must correspond to the one in .github/workflows/ci-additional.yaml
33
34
rev : v0.812
34
35
hooks :
35
36
- id : mypy
Original file line number Diff line number Diff line change
1
+ # used for the "Type checking (mypy)" CI run
2
+ # version must correspond to the one in .pre-commit-config.yaml
3
+ mypy=0.812
You can’t perform that action at this time.
0 commit comments