Add ci checks.

This commit is contained in:
Sleepy Monax 2023-11-11 17:02:42 +01:00
parent 8d1ca3095a
commit 5f7a12e2e2
3 changed files with 33 additions and 2 deletions

30
.github/workflows/checks.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: Checks
on:
pull_request:
push:
branches:
- stable
- dev
jobs:
mypy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.10
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r .github/workflows/requirements.txt
- name: Run MyPy
run: |
python -m mypy .

3
.github/workflows/requirements.txt vendored Normal file
View file

@ -0,0 +1,3 @@
requests ~= 2.28.0
graphviz ~= 0.20.1
mypy ~= 1.7.0

View file

@ -1,2 +0,0 @@
requests ~= 2.28.0
graphviz ~= 0.20.1