Merge branch 'gitlab-ci-update' into 'master'
ci: improved ci pipeline; added 3.6 to 3.11 tests See merge request augustin_s/grum!6
This commit is contained in:
@ -1,29 +1,60 @@
|
|||||||
stages:
|
stages:
|
||||||
- Test
|
- Tests
|
||||||
|
- OptionalTests
|
||||||
|
|
||||||
|
.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: 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:
|
||||||
- pip install pytest pytest-random-order pytest-cov
|
- *install-grum-test
|
||||||
- pip install -e ./
|
- coverage run --source=./grum -m pytest ./tests --junitxml=report-junit.xml
|
||||||
- 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 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:
|
||||||
|
when: always
|
||||||
reports:
|
reports:
|
||||||
cobertura: coverage.xml
|
cobertura: coverage.xml
|
||||||
|
junit: report-junit.xml
|
||||||
|
|
||||||
|
tests-3.6:
|
||||||
|
stage: OptionalTests
|
||||||
|
image: python:3.6
|
||||||
|
needs: ["tests"]
|
||||||
|
allow_failure: true
|
||||||
|
variables:
|
||||||
|
QT_QPA_PLATFORM: "offscreen"
|
||||||
|
XDG_RUNTIME_DIR: "/tmp/runtime-root"
|
||||||
|
script:
|
||||||
|
- *install-grum-test
|
||||||
|
- pytest ./tests
|
||||||
|
|
||||||
|
tests-3.7:
|
||||||
|
extends: "tests-3.6"
|
||||||
|
image: python:3.7
|
||||||
|
|
||||||
|
#tests-3.8:
|
||||||
|
# extends: "tests-3.6"
|
||||||
|
# image: python:3.8
|
||||||
|
|
||||||
|
tests-3.9:
|
||||||
|
extends: "tests-3.6"
|
||||||
|
image: python:3.9
|
||||||
|
|
||||||
|
tests-3.10:
|
||||||
|
extends: "tests-3.6"
|
||||||
|
image: python:3.10
|
||||||
|
|
||||||
|
tests-3.11:
|
||||||
|
extends: "tests-3.6"
|
||||||
|
image: python:3.11
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ long_description = file: README.md
|
|||||||
long_description_content_type = text/markdown
|
long_description_content_type = text/markdown
|
||||||
url = https://gitlab.psi.ch/augustin_s/grum
|
url = https://gitlab.psi.ch/augustin_s/grum
|
||||||
project_urls =
|
project_urls =
|
||||||
Bug Tracker = https://gitlab.psi.ch/augustin_s/grum/issues
|
Bug Tracker = https://gitlab.psi.ch/augustin_s/grum/issues
|
||||||
classifiers =
|
classifiers =
|
||||||
Programming Language :: Python :: 3
|
Programming Language :: Python :: 3
|
||||||
License :: OSI Approved :: MIT License
|
License :: OSI Approved :: MIT License
|
||||||
@ -16,7 +16,7 @@ classifiers =
|
|||||||
package_dir =
|
package_dir =
|
||||||
= .
|
= .
|
||||||
packages = find:
|
packages = find:
|
||||||
python_requires = >=3.8
|
python_requires = >=3.6
|
||||||
|
|
||||||
[options.packages.find]
|
[options.packages.find]
|
||||||
where = .
|
where = .
|
||||||
|
2
setup.py
2
setup.py
@ -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"]},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user