From 949f6ce3530d065b4315b7a718d5bcd9ea4c5160 Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Sun, 23 Jul 2023 09:58:19 -0400 Subject: [PATCH] ci: Add mypy static type check Allow failures for now, until the existing issues are fixed. Closes: #2129. Signed-off-by: James Valleroy Reviewed-by: Sunil Mohan Adapa --- .gitlab-ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 11b5f5a42..2a488ce22 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: []