diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 912ec3e058198693b380a6dbd82d8489c314f6d9..75a77bb3e7eaf523aaf7f7bcf57b3b6a3e555058 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -72,7 +72,7 @@ tests (on GPU):
     - chmod +x ./CI/update_badge.sh
     - ./CI/update_badge.sh > /dev/null
   script:
-    - cat requirements.txt | cut -f1 -d"#" | sed '/^\s*$/d' | xargs -L 1 pip install
+    - pip install -r requirements.txt
     - chmod +x ./CI/run_pytest.sh
     - ./CI/run_pytest.sh
   after_script:
@@ -96,7 +96,7 @@ tests:
     - chmod +x ./CI/update_badge.sh
     - ./CI/update_badge.sh > /dev/null
   script:
-    - cat requirements.txt | cut -f1 -d"#" | sed '/^\s*$/d' | xargs -L 1 pip install
+    - pip install -r requirements.txt
     - chmod +x ./CI/run_pytest.sh
     - ./CI/run_pytest.sh
   after_script:
@@ -120,7 +120,7 @@ coverage:
     - chmod +x ./CI/update_badge.sh
     - ./CI/update_badge.sh > /dev/null
   script:
-    - cat requirements.txt | cut -f1 -d"#" | sed '/^\s*$/d' | xargs -L 1 pip install
+    - pip install -r requirements.txt
     - chmod +x ./CI/run_pytest_coverage.sh
     - ./CI/run_pytest_coverage.sh
   after_script:
@@ -142,7 +142,7 @@ sphinx docs:
     - chmod +x ./CI/update_badge.sh
     - ./CI/update_badge.sh > /dev/null
   script:
-    - cat requirements.txt | cut -f1 -d"#" | sed '/^\s*$/d' | xargs -L 1 pip install
+    - pip install -r requirements.txt
     - pip install -r docs/requirements_docs.txt
     - chmod +x ./CI/create_documentation.sh
     - ./CI/create_documentation.sh