From e5cc5e5ad84c62115e61ef1a3316a917c731fe04 Mon Sep 17 00:00:00 2001
From: Lukas Leufen <l.leufen@fz-juelich.de>
Date: Thu, 14 Jul 2022 15:24:38 +0200
Subject: [PATCH] source venv in all python stages, also run tests from scratch
 to check

---
 .gitlab-ci.yml | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9d514f4e..7e8aac37 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -31,16 +31,17 @@ tests (from scratch):
     - base
     - zam347
   stage: test
-  only:
-    - master
-    - /^release.*$/
-    - develop
+  #only:
+  #  - master
+  #  - /^release.*$/
+  #  - develop
   variables:
     FAILURE_THRESHOLD: 100
     TEST_TYPE: "scratch"
   before_script:
     - chmod +x ./CI/update_badge.sh
     - ./CI/update_badge.sh > /dev/null
+    - source /opt/venv/bin/activate
   script:
     - pip install --upgrade pip
     #    - pip install numpy wheel six==1.15.0
@@ -133,6 +134,7 @@ coverage:
   before_script:
     - chmod +x ./CI/update_badge.sh
     - ./CI/update_badge.sh > /dev/null
+    - source /opt/venv/bin/activate
   script:
     - pip install -r requirements.txt
     - chmod +x ./CI/run_pytest_coverage.sh
@@ -156,6 +158,7 @@ sphinx docs:
   before_script:
     - chmod +x ./CI/update_badge.sh
     - ./CI/update_badge.sh > /dev/null
+    - source /opt/venv/bin/activate
   script:
     - pip install -r requirements.txt
     - pip install -r docs/requirements_docs.txt
-- 
GitLab