Add mypy to GitLab CI

This commit is contained in:
Iain Learmonth 2022-05-15 16:56:31 +00:00 committed by Iain Learmonth
parent 552dfd7937
commit f495b1d079
3 changed files with 40 additions and 1 deletions

View file

@ -1,6 +1,14 @@
image: python:3.8-bullseye
test:
test:mypy:
script:
- cp config.yaml.example config.yaml
- apt update && apt install build-essential
- pip install -r requirements.txt --quiet
- pip install -r requirements-types.txt --quiet
- mypy app
test:docs:
stage: test
script:
- cp config.yaml.example config.yaml