diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ebe85e1f59d12e571e0617d94413c2f4b8aed7e9..72dcf886bc9d2e244f835c4249ae1c51bcd8ffd2 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -37,6 +37,11 @@ workflow:
     - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
     - if: $CI_COMMIT_BRANCH
 
+cache:
+  paths:
+    - venv/
+    - frontend/node_modules/
+
 # include:
 #   - template: 'Code-Quality.gitlab-ci.yml'
 
@@ -48,12 +53,9 @@ workflow:
 
 install-virtualenv:
   stage: build
-  cache: 
-    paths:
-      - venv/
   script:
-    - python3 -m venv ./venv
-    - source ./venv/bin/activate
+    - python3 -m venv venv/
+    - source venv/bin/activate
     - pip install --upgrade pip && pip install pip-tools
     - pip install -r ./backend/requirements.txt
 
@@ -61,9 +63,6 @@ install-virtualenv:
 install-npm-packages:
   image: node:14.6.0
   stage: build
-  cache:
-    paths:
-      - frontend/node_modules/
   script:
     - cd ./frontend
     - npm ci
@@ -77,7 +76,7 @@ install-npm-packages:
 lint-back:
   stage: test
   before_script:
-    - source ./venv/bin/activate
+    - source venv/bin/activate
     - pip install pycodestyle
   script:
     - pycodestyle --config=./backend/setup.cnf ./backend