diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index cb26f6b37f80b20b55ef7a5cbf760ba5c858ad8f..08495d0545a71f1ba2a6dc95700902799227c80f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -111,10 +111,11 @@ ubuntu:X86_64:
   image: registry.lis-lab.fr:5005/dev/ltfatpy/ubuntu:X86_64
   tags:
     - docker
-  script:
+  before_script:
     - conda create -n py39 Python=3.9
     - conda activate py39
     - pip3 install -e . --no-deps
+  script:
     - python3 -m pytest
   artifacts:
     when: always
@@ -128,10 +129,11 @@ ubuntu:i686:
   image: registry.lis-lab.fr:5005/dev/ltfatpy/ubuntu:i686
   tags:
     - docker
-  script:
+  before_script:
     - conda create -n py39 Python=3.9
     - conda activate py39
     - pip3 install -e . --no-deps
+  script:
     - python3 -m pytest
   artifacts:
     when: always