ci: Add mypy static type check

Allow failures for now, until the existing issues are fixed.

Closes: #2129.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
James Valleroy 2023-07-23 09:58:19 -04:00 committed by Sunil Mohan Adapa
parent d45c6e8c90
commit 949f6ce353
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -18,6 +18,16 @@ code-quality:
script:
- python3 -m flake8 container plinth actions/*
static-type-check:
stage: test
allow_failure: true
needs: []
before_script:
- apt-get update
- apt-get install -y mypy
script:
- mypy --ignore-missing-imports .
unit-tests:
stage: test
needs: []