Merge pull request #209 from sewcio543/dev/1.0.0 #418
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: Type checking | |
on: | |
push: | |
branches: | |
- "main" | |
- "dev/[0-9]+.[0-9]+.[0-9]+" | |
pull_request: | |
branches: | |
- "main" | |
- "dev/[0-9]+.[0-9]+.[0-9]+" | |
workflow_dispatch: {} | |
permissions: | |
contents: read | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python and Upgrade pip | |
uses: ./.github/actions/setup_python | |
with: | |
python-version: "3.11" | |
- name: Install mypy | |
run: | | |
python -m pip install $(grep mypy requirements_dev.txt | xargs) | |
- name: Run mypy with missing imports | |
run: | | |
python -m mypy . || true | |
- name: Install mypy types | |
run: | | |
python -m mypy --install-types --non-interactive | |
- name: Check types with mypy | |
run: | | |
python -m mypy . --ignore-missing-imports |