Files
pepperplus-ri/.gitlab-ci.yml
Twirre Meulenbelt f469e4ce36 fix: install in a .venv artifact
This artifact can be reused in different stages.

ref: N25B-367
2025-12-02 21:46:24 +01:00

43 lines
838 B
YAML

# ---------- GLOBAL SETUP ---------- #
workflow:
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
stages:
- install
- test
default:
image: qi-py-ri-base:latest
cache:
key: "${CI_COMMIT_REF_SLUG}"
paths:
- .venv/
policy: pull-push
# --------- INSTALLING --------- #
install:
stage: install
tags:
- install
script:
- python -m virtualenv .venv
- source .venv/bin/activate
- echo /qi/pynaoqi-python2.7-2.5.7.1-linux64/lib/python2.7/site-packages/ > .venv/lib/python2.7/site-packages/pynaoqi-python2.7.pth
- pip install -r requirements.txt
artifacts:
paths:
- .venv/
expire_in: 1h
# ---------- TESTING ---------- #
test:
stage: test
needs:
- install
tags:
- test
script:
- source .venv/bin/activate
- PYTHONPATH=src pytest test/