Skip to content

Commit

Permalink
feat(mypy): mypy gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Nov 10, 2024
1 parent 7d37e23 commit 971b972
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/mypy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: MyPy

on: pull_request

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
mypy:
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:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
persist-credentials: false

- name: Setup Python (faster than using Python container)
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.pyversion }}

- name: Install Poetry
uses: snok/install-poetry@v1

- name: Add Poetry to PATH on Windows
if: runner.os == 'Windows'
run: $env:Path += ";$env:USERPROFILE\.poetry\bin"

- name: Install Dependencies
run: poetry install --no-interaction

- name: Run MyPy
run: make mypy

0 comments on commit 971b972

Please sign in to comment.