diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 10799da8b8049314a3d6c863cc97751fd0c63900..008fc13ef51b8bdfcb90ec22c7fbdb1e8f5fb963 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -12,7 +12,7 @@ stages:
 test-sanity:
   <<: *before_script_anchor
   script:
-    - pytest --tag sanity
+    - pytest --keep-workflow-wd-on-fail --tag sanity
   image: lumc/singularity-snakemake:3.5.2-5.15.0
   tags:
     - docker
@@ -21,7 +21,7 @@ test-sanity:
 test-dry-run:
   <<: *before_script_anchor
   script:
-    - pytest --tag dry-run
+    - pytest --keep-workflow-wd-on-fail --tag dry-run
   image: lumc/singularity-snakemake:3.5.2-5.15.0
   tags:
     - docker