diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 14d16d78c1317fb1d6fc2386707369e2910d3c3f..e3cf818ae003e9e11ecfd783deb6d4e6030382c9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -18,15 +18,15 @@ build-env:
     - pip install poetry
     - cd build/
     - poetry install --no-root
-    - source $(poetry env info --path)/bin/activate
-    - cd ..
   
 test-jobs:
   stage: test-jobs
   script:
+    - source $(poetry env info --path)/bin/activate
     - pytest jobs/tests/
 
 test-tasks:
   stage: test-tasks
   script:
+    - source $(poetry env info --path)/bin/activate
     - pytest tasks/tests/
\ No newline at end of file