Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: run mypy in full env #4929

Merged
merged 12 commits into from
Feb 22, 2021
4 changes: 3 additions & 1 deletion .github/workflows/ci-additional.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ jobs:
typing:
name: Type checking (mypy)
runs-on: "ubuntu-latest"
needs: detect-ci-trigger
if: needs.detect-ci-trigger.outputs.triggered == 'false'
mathause marked this conversation as resolved.
Show resolved Hide resolved
defaults:
run:
shell: bash -l {0}
Expand All @@ -185,7 +187,7 @@ jobs:
run: |
mamba env update -f ci/requirements/environment.yml
- name: Install mypy
run: |
run: | # version must correstpond to the one in .pre-commit-config.yaml
mathause marked this conversation as resolved.
Show resolved Hide resolved
mamba install mypy=0.800
keewis marked this conversation as resolved.
Show resolved Hide resolved
- name: Install xarray
run: |
Expand Down
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ repos:
# - id: velin
# args: ["--write", "--compact"]
- repo: https://github.com/pre-commit/mirrors-mypy
# version must correstpond to the one in .github/workflows/ci-additional.yaml
mathause marked this conversation as resolved.
Show resolved Hide resolved
mathause marked this conversation as resolved.
Show resolved Hide resolved
rev: v0.800
hooks:
- id: mypy
Expand Down