diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bbc642ccc8aff5a39536b3e47cf0628bda681e6e..4555ae31b52e28b8e3edd707c19d17f45f178002 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -265,7 +265,7 @@ build-documentation:
 pages:
   image: i10git.cs.fau.de:5005/pycodegen/pycodegen/full
   stage: deploy
-  needs: ["build-documentation"]
+  needs: ["tests-and-coverage", "build-documentation"]
   script:
     - ls -l
     - mv coverage_report html_doc