Merge pull request #286 from UniversityRadioYork/marks/python-ci
Add MyPy to CI
This commit is contained in:
commit
209880a780
1 changed files with 43 additions and 28 deletions
15
.github/workflows/main.yml
vendored
15
.github/workflows/main.yml
vendored
|
@ -47,3 +47,18 @@ jobs:
|
|||
# Prettier
|
||||
- name: Prettier
|
||||
run: node_modules/.bin/prettier -c 'src/**/*.{js,ts,tsx,css,scss}'
|
||||
|
||||
python:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install Poetry
|
||||
run: pipx install poetry
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.10"
|
||||
cache: poetry
|
||||
- run: poetry install --with=dev
|
||||
- name: MyPy checks
|
||||
run: poetry run mypy *.py
|
||||
|
|
Loading…
Reference in a new issue