diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fdaa0c29324003c9006227d500eb5bf7bd269e06..89e94e75eafb2c975d5b6a5339d1ed2a2e303835 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,14 @@
 image: rocker/verse:4.4.1
 
+variables:
+  QUARTO_VERSION: "1.5.57"  # Specify the desired Quarto version
+
+before_script:
+  # Install Quarto
+  - wget https://github.com/quarto-dev/quarto-cli/releases/download/v$QUARTO_VERSION/quarto-$QUARTO_VERSION-linux-amd64.deb
+  - sudo dpkg -i quarto-$QUARTO_VERSION-linux-amd64.deb
+  - quarto check install  # Ensure Quarto is installed properly
+  
 pages:
   stage: deploy
   before_script: