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: pytest:
stage: testing stage: testing
extends: .python extends: .python
script: > script:
- pytest --cov --cov-report term - >
pytest --cov --cov-report term
--cov-report xml:coverage.xml --cov-report xml:coverage.xml
--junitxml=report.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+)?\%)$/' coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts: artifacts:
when: always when: always
@ -99,7 +100,7 @@ pytest:
- report.xml - report.xml
reports: reports:
junit: report.xml junit: report.xml
codequality: pytest-warnings.json # codequality: pytest-warnings.json
coverage_report: coverage_report:
coverage_format: cobertura coverage_format: cobertura
path: coverage.xml path: coverage.xml

View file

@ -32,7 +32,7 @@ dev = [
"ruff", "ruff",
"mypy[reports]", "mypy[reports]",
"mypy-gitlab-code-quality", "mypy-gitlab-code-quality",
"pytest-gitlab-code-quality", # "pytest-gitlab-code-quality", # pytest version constraint clashes with labthings
"pytest", "pytest",
] ]
pi = [ pi = [