Type annotations, mypy config, pydoclint setup, and other changes #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: typechecking | |
on: | |
push: | |
branches: | |
- "master" | |
- "test-me/*" | |
pull_request: | |
branches: | |
- "*" | |
defaults: | |
run: | |
shell: bash -el {0} | |
jobs: | |
typechecking: | |
name: mypy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Conda and parcels | |
uses: ./.github/actions/install-parcels | |
with: | |
environment-file: environment.yml | |
- run: conda install lxml # dep for report generation | |
- name: Typechecking | |
run: | | |
mypy --install-types --non-interactive parcels --cobertura-xml-report mypy_report | |
continue-on-error: true # LONGTERM GOAL: Improve coverage to the point where we can fail on error | |
- name: Upload mypy coverage to Codecov | |
uses: codecov/[email protected] | |
with: | |
file: mypy_report/cobertura.xml | |
flags: mypy | |
fail_ci_if_error: false |