From 1d5442ac083a494b76b5e3241c49c763af64e04e Mon Sep 17 00:00:00 2001 From: wyzula_j Date: Wed, 20 Mar 2024 11:11:49 +0100 Subject: [PATCH] ci: now testing against master branches of bec_lib and ophyd_devices --- .gitlab-ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 670e9758..f2409a18 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,6 +5,8 @@ image: $CI_DOCKER_REGISTRY/python:3.10 #commands to run in the Docker container before starting each job. variables: DOCKER_TLS_CERTDIR: "" + BEC_CORE_BRANCH: "master" + OPHYD_DEVICES_BRANCH: "master" include: - template: Security/Secret-Detection.gitlab-ci.yml @@ -77,9 +79,13 @@ tests: variables: QT_QPA_PLATFORM: "offscreen" 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 - - pip install .[dev] + - pip install -e ./bec/bec_lib[dev] + - pip install -e .[dev] - coverage run --source=./bec_widgets -m pytest -v --junitxml=report.xml --random-order --full-trace ./tests - coverage report - coverage xml