Add mypy Github action

This commit is contained in:
IgorVolochay
2025-01-31 18:28:02 +03:00
parent 3ef7f5811c
commit 159f89cccc
2 changed files with 44 additions and 17 deletions
+26
View File
@@ -0,0 +1,26 @@
name: Lint
on:
push:
paths:
- '*.py'
jobs:
mypy:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.9
architecture: x64
- name: Checkout
uses: actions/checkout@v3
- name: Install mypy
run: pip install mypy
- name: Run mypy
uses: sasanquaneuf/mypy-github-action@releases/v1
with:
checkName: 'mypy' # NOTE: this needs to be the same as the job name
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}