From d330e88d5425780c28af86105178a4f2a6430ad1 Mon Sep 17 00:00:00 2001 From: HgO Date: Wed, 17 Apr 2024 16:20:58 +0200 Subject: [PATCH] fix code coverage report --- .gitlab-ci.yml | 3 +-- pytest.ini | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d702457..22c6637 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -68,8 +68,7 @@ tests: coverage_report: coverage_format: cobertura path: coverage.xml - junit: report.xml - coverage: '/^TOTAL\s+\d+\s+\d+\s+(\d+\.\d+\%)$/' + coverage: '/^TOTAL\s+\d+\s+\d+\s+(\d+(\.\d+)?\%)$/' needs: - job: linting artifacts: false diff --git a/pytest.ini b/pytest.ini index e365e4c..336a0d5 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,3 +1,3 @@ [pytest] asyncio_mode=strict -addopts=--cov=matrix_alertbot --cov-report=lcov:lcov.info --cov-report=term +addopts=--cov=matrix_alertbot --cov-report=xml:coverage.xml --cov-report=term