Skip to content

Commit

Permalink
Add CI for mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
ekr committed Dec 13, 2024
1 parent 801da13 commit a8c80af
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/mypy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Run MyPy

on:
pull_request:
push:
branches: [main]

jobs:
pytest:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up python
uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: Install global dependencies
run: |
pip install poetry
- name: Set up
run: |
poetry install
poetry run mypy --non-interactive --install-types
- name: Run myPy
run: |
poetry run mypy .

0 comments on commit a8c80af

Please sign in to comment.