From 85bc789c7ed59d72e150253865a703083f864848 Mon Sep 17 00:00:00 2001 From: Robert Rosca <robert.rosca@xfel.eu> Date: Thu, 4 Mar 2021 21:37:40 +0100 Subject: [PATCH] Move and add pip upgrade command to before script --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 71e5bd23e..4441873da 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,6 +9,7 @@ checks: before_script: - python3 -m venv .venv - source .venv/bin/activate + - python3 -m pip install --upgrade pip script: - export PATH=/home/gitlab-runner/.local/bin:$PATH # We'd like to run the pre-commit hooks only on files that are being @@ -39,7 +40,7 @@ pytest: - echo $GIT_SSH_COMMAND - python3 -m venv .venv - source .venv/bin/activate - script: - python3 -m pip install --upgrade pip + script: - python3 -m pip install ".[test]" - python3 -m pytest --cov=cal_tools --cov=xfel_calibrate --ignore=tests/legacy -- GitLab