make pipeline fail if code coverage < 75%
This commit is contained in:
parent
cc77c27956
commit
60572d03fa
2 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ tests:
|
|||
coverage_format: cobertura
|
||||
path: coverage.xml
|
||||
junit: report.xml
|
||||
coverage: '/^TOTAL\s+\d+\s+\d+\s+([\d\.]+\%)$/'
|
||||
coverage: '/Total coverage: ([\d\.]+\%)$/'
|
||||
needs:
|
||||
- job: linting
|
||||
artifacts: false
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
[pytest]
|
||||
asyncio_mode=strict
|
||||
addopts=--cov=matrix_alertbot --cov-report=lcov:lcov.info --cov-report=xml:coverage.xml --cov-report=term
|
||||
addopts=--cov=matrix_alertbot --cov-report=lcov:lcov.info --cov-report=xml:coverage.xml --cov-report=term --cov-fail-under=75
|
||||
|
|
Loading…
Reference in a new issue