ci: added BEC_CORE_BRANCH var name to .gitlab-ci.yml
This commit is contained in:
parent
5fca3ec129
commit
d3a26ff3b2
@ -3,6 +3,9 @@
|
|||||||
# https://hub.docker.com/r/library/python/tags/
|
# https://hub.docker.com/r/library/python/tags/
|
||||||
image: $CI_DOCKER_REGISTRY/python:3.10
|
image: $CI_DOCKER_REGISTRY/python:3.10
|
||||||
|
|
||||||
|
variables:
|
||||||
|
BEC_CORE_BRANCH: "master"
|
||||||
|
|
||||||
workflow:
|
workflow:
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||||
@ -85,6 +88,8 @@ secret_detection:
|
|||||||
pytest:
|
pytest:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
|
- git clone --branch $BEC_CORE_BRANCH https://gitlab.psi.ch/bec/bec.git
|
||||||
|
- pip install -e ./bec/bec_lib[dev]
|
||||||
- pip install coverage
|
- pip install coverage
|
||||||
- coverage run --source=./ophyd_devices -m pytest -v --junitxml=report.xml --random-order --full-trace ./tests
|
- coverage run --source=./ophyd_devices -m pytest -v --junitxml=report.xml --random-order --full-trace ./tests
|
||||||
- coverage report
|
- coverage report
|
||||||
|
Loading…
x
Reference in New Issue
Block a user