Skip to content

Type annotations, mypy config, pydoclint setup, and other changes #3

Type annotations, mypy config, pydoclint setup, and other changes

Type annotations, mypy config, pydoclint setup, and other changes #3

Workflow file for this run

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