Merge branch 'tests' of gitlab.psi.ch:augustin_s/grum into tests

This commit is contained in:
stalbe_j
2023-01-17 10:27:41 +01:00

23
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,23 @@
tests:
stage: Test
variables:
QT_QPA_PLATFORM: "offscreen"
script:
- pip install pytest pytest-random-order pytest-cov
- pip install -e ./
- apt-get update
- apt-get install ffmpeg libsm6 libxext6 libxkbcommon-x11-0 -y
- apt-get install libxcb-xinerama0 -y
- python -m unittest discover -f ./tests
- coverage run --source=./live_display -m unittest discover -f ./tests
- coverage report
- coverage xml
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts:
reports:
cobertura: coverage.xml