diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 73870cdf4fa95277cfa9f5e5afb7d6a9a92c6a93..ddc8e8ed65c3de92d3aef8655c1659d1296f60f8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -343,7 +343,7 @@ pages:
   image: i10git.cs.fau.de:5005/pycodegen/pycodegen/full
   # extends: .every-commit
   stage: deploy
-  needs: ["build-documentation"]
+  needs: ["tests-and-coverage", "build-documentation"]
   script:
     - ls -l
     - mv coverage_report html_doc