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:
parent
c3cd30b642
commit
1d59cddac1
2 changed files with 6 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ dev = [
|
|||
"ruff",
|
||||
"mypy[reports]",
|
||||
"mypy-gitlab-code-quality",
|
||||
"pytest-gitlab-code-quality",
|
||||
# "pytest-gitlab-code-quality", # pytest version constraint clashes with labthings
|
||||
"pytest",
|
||||
]
|
||||
pi = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue