diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3a55498ce25e90e9cf21acfb92a1a68274488bce..7d634d18790767fd38b4913d12d6c31e306692b4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,20 +4,19 @@ mypy:
     stage: test
     script:
         - pip install mypy --quiet
-        - pip install . --quiet
         - mypy syng --strict
 
 pylint:
     stage: test
     script:
         - pip install pylint --quiet
-        - pip install . --quiet
         - pylint syng
 
 test:
     stage: test
     script:
         - pip install -U sphinx
+        - pip install . --quiet
         - sphinx-build -b html docs/source docs/build
     only:
         - branches
@@ -30,6 +29,7 @@ pages:
     stage: deploy
     script:
         - pip install -U sphinx
+        - pip install . --quiet
         - sphinx-build -b html docs/source docs/build
     artifacts:
         paths: