Disable pytest code quality report

Code quality report plugin clashes with the version of pytest specced in labthings.

If we resolve this upstream, we can re-enable it.
This commit is contained in:
Richard Bowman 2024-12-03 14:19:36 +00:00
parent c3cd30b642
commit 1d59cddac1
2 changed files with 6 additions and 5 deletions

View file

@ -87,11 +87,12 @@ mypy:
pytest:
stage: testing
extends: .python
script: >
- pytest --cov --cov-report term
script:
- >
pytest --cov --cov-report term
--cov-report xml:coverage.xml
--junitxml=report.xml
--gitlab-code-quality-report=pytest-warnings.json
# --gitlab-code-quality-report=pytest-warnings.json # can restore when it installs ok
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts:
when: always
@ -99,7 +100,7 @@ pytest:
- report.xml
reports:
junit: report.xml
codequality: pytest-warnings.json
# codequality: pytest-warnings.json
coverage_report:
coverage_format: cobertura
path: coverage.xml