mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-13 19:21:50 +02:00
ci: merged additional tests to parallel matrix job
This commit is contained in:
133
.gitlab-ci.yml
133
.gitlab-ci.yml
@ -128,26 +128,25 @@ tests:
|
|||||||
coverage_format: cobertura
|
coverage_format: cobertura
|
||||||
path: coverage.xml
|
path: coverage.xml
|
||||||
|
|
||||||
tests-3.10-pyside6:
|
test-matrix:
|
||||||
extends: "tests"
|
parallel:
|
||||||
stage: AdditionalTests
|
matrix:
|
||||||
image: $CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX/python:3.10
|
- PYTHON_VERSION:
|
||||||
script:
|
- "3.10"
|
||||||
- git clone --branch $BEC_CORE_BRANCH https://gitlab.psi.ch/bec/bec.git
|
- "3.11"
|
||||||
- git clone --branch $OPHYD_DEVICES_BRANCH https://gitlab.psi.ch/bec/ophyd_devices.git
|
- "3.12"
|
||||||
- export OHPYD_DEVICES_PATH=$PWD/ophyd_devices
|
QT_PCKG:
|
||||||
- apt-get update
|
- "pyside6"
|
||||||
- apt-get install -y libgl1-mesa-glx libegl1-mesa x11-utils libxkbcommon-x11-0 libdbus-1-3
|
- "pyqt5"
|
||||||
- *install-qt-webengine-deps
|
- "pyqt6"
|
||||||
- pip install -e ./bec/bec_lib[dev]
|
|
||||||
- pip install -e .[dev,pyside6]
|
|
||||||
- pytest -v --junitxml=report.xml --random-order ./tests/unit_tests
|
|
||||||
allow_failure: true
|
|
||||||
|
|
||||||
tests-3.12-pyside6:
|
|
||||||
extends: "tests"
|
|
||||||
stage: AdditionalTests
|
stage: AdditionalTests
|
||||||
image: $CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX/python:3.12
|
needs: []
|
||||||
|
variables:
|
||||||
|
QT_QPA_PLATFORM: "offscreen"
|
||||||
|
PYTHON_VERSION: ""
|
||||||
|
QT_PCKG: ""
|
||||||
|
image: $CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX/python:$PYTHON_VERSION
|
||||||
script:
|
script:
|
||||||
- git clone --branch $BEC_CORE_BRANCH https://gitlab.psi.ch/bec/bec.git
|
- git clone --branch $BEC_CORE_BRANCH https://gitlab.psi.ch/bec/bec.git
|
||||||
- git clone --branch $OPHYD_DEVICES_BRANCH https://gitlab.psi.ch/bec/ophyd_devices.git
|
- git clone --branch $OPHYD_DEVICES_BRANCH https://gitlab.psi.ch/bec/ophyd_devices.git
|
||||||
@ -156,103 +155,7 @@ tests-3.12-pyside6:
|
|||||||
- apt-get install -y libgl1-mesa-glx libegl1-mesa x11-utils libxkbcommon-x11-0 libdbus-1-3
|
- apt-get install -y libgl1-mesa-glx libegl1-mesa x11-utils libxkbcommon-x11-0 libdbus-1-3
|
||||||
- *install-qt-webengine-deps
|
- *install-qt-webengine-deps
|
||||||
- pip install -e ./bec/bec_lib[dev]
|
- pip install -e ./bec/bec_lib[dev]
|
||||||
- pip install -e .[dev,pyside6]
|
- pip install -e .[dev,$QT_PCKG]
|
||||||
- pytest -vv --junitxml=report.xml --random-order ./tests/unit_tests
|
|
||||||
allow_failure: true
|
|
||||||
|
|
||||||
tests-3.10-pyqt5:
|
|
||||||
extends: "tests"
|
|
||||||
stage: AdditionalTests
|
|
||||||
image: $CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX/python:3.10
|
|
||||||
script:
|
|
||||||
- git clone --branch $BEC_CORE_BRANCH https://gitlab.psi.ch/bec/bec.git
|
|
||||||
- git clone --branch $OPHYD_DEVICES_BRANCH https://gitlab.psi.ch/bec/ophyd_devices.git
|
|
||||||
- export OHPYD_DEVICES_PATH=$PWD/ophyd_devices
|
|
||||||
- apt-get update
|
|
||||||
- apt-get install -y libgl1-mesa-glx libegl1-mesa x11-utils libxkbcommon-x11-0 libdbus-1-3
|
|
||||||
- *install-qt-webengine-deps
|
|
||||||
- pip install -e ./bec/bec_lib[dev]
|
|
||||||
- pip install -e .[dev,pyqt5]
|
|
||||||
- pytest -v --junitxml=report.xml --random-order ./tests/unit_tests
|
|
||||||
allow_failure: true
|
|
||||||
|
|
||||||
tests-3.11-pyqt5:
|
|
||||||
extends: "tests"
|
|
||||||
stage: AdditionalTests
|
|
||||||
image: $CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX/python:3.11
|
|
||||||
script:
|
|
||||||
- git clone --branch $BEC_CORE_BRANCH https://gitlab.psi.ch/bec/bec.git
|
|
||||||
- git clone --branch $OPHYD_DEVICES_BRANCH https://gitlab.psi.ch/bec/ophyd_devices.git
|
|
||||||
- export OHPYD_DEVICES_PATH=$PWD/ophyd_devices
|
|
||||||
- apt-get update
|
|
||||||
- apt-get install -y libgl1-mesa-glx libegl1-mesa x11-utils libxkbcommon-x11-0 libdbus-1-3
|
|
||||||
- *install-qt-webengine-deps
|
|
||||||
- pip install -e ./bec/bec_lib[dev]
|
|
||||||
- pip install -e .[dev,pyqt5]
|
|
||||||
- pytest -v --junitxml=report.xml --random-order ./tests/unit_tests
|
|
||||||
allow_failure: true
|
|
||||||
|
|
||||||
tests-3.12-pyqt5:
|
|
||||||
extends: "tests"
|
|
||||||
stage: AdditionalTests
|
|
||||||
image: $CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX/python:3.12
|
|
||||||
script:
|
|
||||||
- git clone --branch $BEC_CORE_BRANCH https://gitlab.psi.ch/bec/bec.git
|
|
||||||
- git clone --branch $OPHYD_DEVICES_BRANCH https://gitlab.psi.ch/bec/ophyd_devices.git
|
|
||||||
- export OHPYD_DEVICES_PATH=$PWD/ophyd_devices
|
|
||||||
- apt-get update
|
|
||||||
- apt-get install -y libgl1-mesa-glx libegl1-mesa x11-utils libxkbcommon-x11-0 libdbus-1-3
|
|
||||||
- *install-qt-webengine-deps
|
|
||||||
- pip install -e ./bec/bec_lib[dev]
|
|
||||||
- pip install -e .[dev,pyqt5]
|
|
||||||
- pytest -v --junitxml=report.xml --random-order ./tests/unit_tests
|
|
||||||
allow_failure: true
|
|
||||||
|
|
||||||
tests-3.10-pyqt6:
|
|
||||||
extends: "tests"
|
|
||||||
stage: AdditionalTests
|
|
||||||
image: $CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX/python:3.10
|
|
||||||
script:
|
|
||||||
- git clone --branch $BEC_CORE_BRANCH https://gitlab.psi.ch/bec/bec.git
|
|
||||||
- git clone --branch $OPHYD_DEVICES_BRANCH https://gitlab.psi.ch/bec/ophyd_devices.git
|
|
||||||
- export OHPYD_DEVICES_PATH=$PWD/ophyd_devices
|
|
||||||
- apt-get update
|
|
||||||
- apt-get install -y libgl1-mesa-glx libegl1-mesa x11-utils libxkbcommon-x11-0 libdbus-1-3
|
|
||||||
- *install-qt-webengine-deps
|
|
||||||
- pip install -e ./bec/bec_lib[dev]
|
|
||||||
- pip install -e .[dev,pyqt6]
|
|
||||||
- pytest -v --junitxml=report.xml --random-order ./tests/unit_tests
|
|
||||||
allow_failure: true
|
|
||||||
|
|
||||||
tests-3.11-pyqt6:
|
|
||||||
extends: "tests"
|
|
||||||
stage: AdditionalTests
|
|
||||||
image: $CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX/python:3.11
|
|
||||||
script:
|
|
||||||
- git clone --branch $BEC_CORE_BRANCH https://gitlab.psi.ch/bec/bec.git
|
|
||||||
- git clone --branch $OPHYD_DEVICES_BRANCH https://gitlab.psi.ch/bec/ophyd_devices.git
|
|
||||||
- export OHPYD_DEVICES_PATH=$PWD/ophyd_devices
|
|
||||||
- apt-get update
|
|
||||||
- apt-get install -y libgl1-mesa-glx libegl1-mesa x11-utils libxkbcommon-x11-0 libdbus-1-3
|
|
||||||
- *install-qt-webengine-deps
|
|
||||||
- pip install -e ./bec/bec_lib[dev]
|
|
||||||
- pip install -e .[dev,pyqt6]
|
|
||||||
- pytest -v --junitxml=report.xml --random-order ./tests/unit_tests
|
|
||||||
allow_failure: true
|
|
||||||
|
|
||||||
tests-3.12-pyqt6:
|
|
||||||
extends: "tests"
|
|
||||||
stage: AdditionalTests
|
|
||||||
image: $CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX/python:3.12
|
|
||||||
script:
|
|
||||||
- git clone --branch $BEC_CORE_BRANCH https://gitlab.psi.ch/bec/bec.git
|
|
||||||
- git clone --branch $OPHYD_DEVICES_BRANCH https://gitlab.psi.ch/bec/ophyd_devices.git
|
|
||||||
- export OHPYD_DEVICES_PATH=$PWD/ophyd_devices
|
|
||||||
- apt-get update
|
|
||||||
- apt-get install -y libgl1-mesa-glx libegl1-mesa x11-utils libxkbcommon-x11-0 libdbus-1-3
|
|
||||||
- *install-qt-webengine-deps
|
|
||||||
- pip install -e ./bec/bec_lib[dev]
|
|
||||||
- pip install -e .[dev,pyqt6]
|
|
||||||
- pytest -v --junitxml=report.xml --random-order ./tests/unit_tests
|
- pytest -v --junitxml=report.xml --random-order ./tests/unit_tests
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user