Skip to content

Commit

Permalink
chore: run mypy on matrix (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Nov 10, 2024
1 parent d7a4bfe commit 3d30860
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/mypy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ on: pull_request

jobs:
mypy:
runs-on: ubuntu-20.04
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
pyversion: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]

steps:
- uses: actions/checkout@v2
Expand All @@ -14,12 +19,12 @@ jobs:
- name: Setup Python (faster than using Python container)
uses: actions/setup-python@v2
with:
python-version: "3.9"
python-version: ${{ matrix.pyversion }}

- name: Install MyPy
run: |
python -m pip install --upgrade pip
pip install mypy types-requests
pip install mypy
- name: Run MyPy
run: mypy . --strict --pretty --show-error-codes --show-error-context
run: mypy . --strict --pretty --show-error-codes --show-error-context --install-types

0 comments on commit 3d30860

Please sign in to comment.