diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d6c77a108dc33c2db8681682e844906ed6da2424..e4aa0eced2a209dcaa15bea59f14eda622e28c78 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,9 +9,10 @@ stages:
 
 install:
   stage: install
-  script:
-  - apt-get update && apt-get install --no-install-recommends -y python3 python3-pip python3-selenium python3-virtualenv chromium-driver make xauth xvfb tesseract-ocr tesseract-ocr-eng tesseract-ocr-fra ocrmypdf
+  before_script:
+  - apt-get update && apt-get install --no-install-recommends -y python3 python3-virtualenv
   - ln -s /usr/bin/python3 /usr/bin/python
+  script:
   - virtualenv --python=/usr/bin/python3 .
   - source bin/activate
   - pip3 install -r requirements.txt
@@ -25,9 +26,12 @@ install:
 test_ppparis:
   stage: test
   needs: [install]
+  before_script:
+  - apt-get update && apt-get install --no-install-recommends -y python3 python3-virtualenv chromium-driver make xauth xvfb tesseract-ocr tesseract-ocr-eng tesseract-ocr-fra ocrmypdf
+  - ln -s /usr/bin/python3 /usr/bin/python
   script:
   - source bin/activate
-  - python3 ./ppparis.py
+  - python ./ppparis.py
   only:
   - main
   cache: