Skip to content

Commit

Permalink
Moving mypy to its own job.
Browse files Browse the repository at this point in the history
  • Loading branch information
BenediktBurger committed Jul 13, 2023
1 parent a497ccf commit 18e1d4b
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/pyleco_CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ jobs:
uses: chartboost/ruff-action@v1
with:
args: --extend-select=E9,F63,F7,F82 --show-source
- name: Install mypy
run: pip install mypy
- name: Run mypy
uses: sasanquaneuf/mypy-github-action@releases/v1
with:
checkName: 'docs_lint' # NOTE: this needs to be the same as the job name
- uses: ammaraskar/sphinx-problem-matcher@master
- name: Generate docs
if: always() # run even if the previous step failed
Expand All @@ -46,6 +40,29 @@ jobs:
run: |
echo "::add-matcher::.github/sphinx.json"
make doctest SPHINXOPTS="-W --keep-going"
type_checking:
name: Static Type Checking
runs-on: "ubuntu-latest"
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install pyleco requirements
uses: mamba-org/setup-micromamba@v1
with:
python-version: "3.10"
environment-file: environment.yml
cache-environment-key: py3.10-ubuntu-latest-mamba-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment.yml') }}
cache-downloads: false
- name: Install mypy
run: pip install mypy
- name: Run mypy
uses: sasanquaneuf/mypy-github-action@releases/v1
with:
checkName: 'type_checking' # NOTE: this needs to be the same as the job name
test:
name: Python ${{ matrix.python-version }}, ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit 18e1d4b

Please sign in to comment.