diff options
Diffstat (limited to '')
-rw-r--r-- | .gitlab-ci.yml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6be9bf4..565d0d9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,6 +30,27 @@ tests-unstable: - apt-get build-dep -Ppkg.debputy.ci -y . - dpkg-buildpackage -Ppkg.debputy.ci -us -uc -tc +code-lint-mypy: + stage: ci-test + image: debian:unstable + script: + - apt-get update + - apt-get build-dep -Ppkg.debputy.ci -y . + - apt-get install -y mypy python3-lxml + # Remove the `|| true` once we get to a sufficient level of typing where we can set the minimum bar + - mypy --html-report mypy-report --junit-format per_file --junit-xml mypy-xunit-report.xml --cobertura-xml-report mypy-cobertura-report src tests || true + artifacts: + paths: + - mypy-report + reports: + junit: mypy-xunit-report.xml + coverage_report: + coverage_format: cobertura + path: mypy-cobertura-report/cobertura.xml + except: + variables: + - $CI_COMMIT_TAG != null && $SALSA_CI_ENABLE_PIPELINE_ON_TAGS !~ /^(1|yes|true)$/ + tests-unstable-coverage-without-optional-bd: stage: ci-test image: debian:unstable @@ -111,8 +132,10 @@ pages: script: - mkdir public - mv coverage-report public/ + - mv mypy-report public/ dependencies: - aggregate-coverage + - code-lint-mypy artifacts: paths: - public |