Merge branch 'upload-test-reports' into 'master'

Generate and use pytest XML reports

See merge request openflexure/openflexure-microscope-server!135
This commit is contained in:
Richard Bowman 2021-08-17 15:30:39 +00:00
commit feedda87ed
3 changed files with 10 additions and 1 deletions

4
.gitignore vendored
View file

@ -7,6 +7,9 @@
__pycache__/
*.py[cod]
# Mypy cache
.mypy_cache*
# C extensions
*.so
@ -45,6 +48,7 @@ htmlcov/
.cache
nosetests.xml
coverage.xml
pytest_report.xml
# Translations
*.mo

View file

@ -102,6 +102,11 @@ pytest:
- tags
- web
artifacts:
when: always
reports:
junit: pytest_report.xml
openapi:
stage: testing
image: python:3.7

View file

@ -44,7 +44,7 @@ black_check = "black --check ."
isort = "isort openflexure_microscope"
pylint = "pylint openflexure_microscope"
mypy = "mypy --cobertura-xml-report openflexure_microscope openflexure_microscope"
test = "pytest ."
test = "pytest . --junitxml=pytest_report.xml"
serve = "python -m openflexure_microscope.api.app"
format = ["black", "isort"]