diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 37a311d1fad25699984977a82d3d525f6d1288a0..6a322e139b0fbeab47dc55cdb3287cba94e8dc3f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -55,7 +55,6 @@ pylint:
 unittest:
   tags: [ docker ]
   stage: test
-  needs: [ build-testenv ]
   script:
     - touch ~/.pycaosdb.ini
     - make unittest
@@ -97,7 +96,7 @@ build-testenv:
 pages_prepare: &pages_prepare
   tags: [ cached-dind ]
   stage: deploy
-  needs: [ unittest ]
+  needs: [ code_style, pylint, unittest ]
   only:
     refs:
       - /^release-.*$/i