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__/ __pycache__/
*.py[cod] *.py[cod]
# Mypy cache
.mypy_cache*
# C extensions # C extensions
*.so *.so
@ -45,6 +48,7 @@ htmlcov/
.cache .cache
nosetests.xml nosetests.xml
coverage.xml coverage.xml
pytest_report.xml
# Translations # Translations
*.mo *.mo

View file

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

View file

@ -44,7 +44,7 @@ black_check = "black --check ."
isort = "isort openflexure_microscope" isort = "isort openflexure_microscope"
pylint = "pylint openflexure_microscope" pylint = "pylint openflexure_microscope"
mypy = "mypy --cobertura-xml-report openflexure_microscope 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" serve = "python -m openflexure_microscope.api.app"
format = ["black", "isort"] format = ["black", "isort"]