Skip to content

Commit

Permalink
Add mypy action.
Browse files Browse the repository at this point in the history
  • Loading branch information
janosg committed May 2, 2024
1 parent c22a54e commit 5fa3c07
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,23 @@ jobs:
micromamba activate estimagic
cd docs/source
python -m doctest -v how_to_guides/optimization/how_to_specify_constraints.md
run-mypy:
name: Run mypy
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: create build environment
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: ./.envs/testenv-linux.yml
environment-name: estimagic
cache-env: true
extra-specs: |
python=3.10
- name: Run mypy
shell: bash -l {0}
run: |-
micromamba activate estimagic
mypy

0 comments on commit 5fa3c07

Please sign in to comment.