ci: improved ci pipeline; added 3.9 and 3.10 tests

This commit is contained in:
2023-01-28 17:29:56 +01:00
parent aeaabd028f
commit 7d169fdd53
2 changed files with 26 additions and 9 deletions

View File

@ -1,5 +1,13 @@
stages:
- Test
- AdditionalTests
.install-grum-test: &install-grum-test
- pip install pytest pytest-random-order pytest-cov
- pip install -e ./
- apt-get update
- apt-get install -y ffmpeg libnss3 libxcomposite1 libxtst6
tests:
stage: Test
@ -8,15 +16,8 @@ tests:
XDG_RUNTIME_DIR: "/tmp/runtime-root"
script:
- pip install pytest pytest-random-order pytest-cov
- pip install -e ./
- pip install PyQtWebEngine
- *install-grum-test
- apt-get update
- apt-get install -y ffmpeg libnss3 libxcomposite1 libxtst6
# - python -m unittest discover -f ./tests
# - coverage run --source=./grum -m unittest discover -f ./tests
- coverage run --source=./grum -m pytest ./tests
- coverage report
- coverage xml
@ -26,4 +27,20 @@ tests:
reports:
cobertura: coverage.xml
tests-3.9:
stage: AdditionalTests
image: python:3.9
needs: ["tests"]
allow_failure: true
variables:
QT_QPA_PLATFORM: "offscreen"
XDG_RUNTIME_DIR: "/tmp/runtime-root"
script:
- *install-grum-test
- pytest ./tests
tests-3.10:
extends: "tests-3.9"
stage: AdditionalTests
image: python:3.10
allow_failure: true