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: stages:
- Test - 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: tests:
stage: Test stage: Test
@ -8,15 +16,8 @@ tests:
XDG_RUNTIME_DIR: "/tmp/runtime-root" XDG_RUNTIME_DIR: "/tmp/runtime-root"
script: script:
- pip install pytest pytest-random-order pytest-cov - *install-grum-test
- pip install -e ./
- pip install PyQtWebEngine
- 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 run --source=./grum -m pytest ./tests
- coverage report - coverage report
- coverage xml - coverage xml
@ -26,4 +27,20 @@ tests:
reports: reports:
cobertura: coverage.xml 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

View File

@ -2,7 +2,7 @@ from setuptools import setup
if __name__ == "__main__": if __name__ == "__main__":
setup( setup(
install_requires=["pyqt5", "pyqtgraph", "h5py"], install_requires=["pyqt5", "pyqtgraph", "h5py", "PyQtWebEngine"],
entry_points={"console_scripts": ["grum=grum:main"]}, entry_points={"console_scripts": ["grum=grum:main"]},
) )