a bit of formatting and naming

This commit is contained in:
2023-03-14 09:35:44 +01:00
parent 7d169fdd53
commit efd023ae3a

View File

@ -1,34 +1,31 @@
stages: stages:
- Test - Tests
- AdditionalTests - OptionalTests
.install-grum-test: &install-grum-test .install-grum-test: &install-grum-test
- pip install pytest pytest-random-order pytest-cov - pip install pytest pytest-random-order pytest-cov
- pip install -e ./ - pip install -e ./
- apt-get update - apt-get update
- apt-get install -y ffmpeg libnss3 libxcomposite1 libxtst6 - apt-get install -y ffmpeg libnss3 libxcomposite1 libxtst6
tests: tests:
stage: Test stage: Tests
image: python:3.8
variables: variables:
QT_QPA_PLATFORM: "offscreen" QT_QPA_PLATFORM: "offscreen"
XDG_RUNTIME_DIR: "/tmp/runtime-root" XDG_RUNTIME_DIR: "/tmp/runtime-root"
script: script:
- *install-grum-test - *install-grum-test
- coverage run --source=./grum -m pytest ./tests - coverage run --source=./grum -m pytest ./tests
- coverage report - coverage report
- coverage xml - coverage xml
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/' coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts: artifacts:
reports: reports:
cobertura: coverage.xml cobertura: coverage.xml
tests-3.9: tests-3.9:
stage: AdditionalTests stage: OptionalTests
image: python:3.9 image: python:3.9
needs: ["tests"] needs: ["tests"]
allow_failure: true allow_failure: true
@ -41,6 +38,5 @@ tests-3.9:
tests-3.10: tests-3.10:
extends: "tests-3.9" extends: "tests-3.9"
stage: AdditionalTests
image: python:3.10 image: python:3.10
allow_failure: true