From a10ce3e47226d6c03529e1a5439d95d9803ba55c Mon Sep 17 00:00:00 2001 From: HgO Date: Mon, 8 Aug 2022 22:54:12 +0200 Subject: [PATCH] coverage percent in pipeline --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d3b97e4..d254d29 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -56,7 +56,8 @@ tests: stage: test script: - apk add --no-cache libstdc++ - - coverage run --source matrix_alertbot -m pytest --junitxml=report.xml + - coverage run --source matrix_alertbot --parallel-mode -m pytest --junitxml=report.xml + - coverage report --precision 2 - coverage xml -o coverage.xml cache: policy: pull @@ -66,4 +67,5 @@ tests: coverage_format: cobertura path: coverage.xml junit: report.xml + coverage: '/^TOTAL\s+\d+\s+\d+\s+(\d+\%)$/' interruptible: true