diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f78a414d93cf6d29230448ed7e454b0f2bb8a14f..b1b09768bee9d19de1082eca7068f2eb348cb27e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,12 +5,10 @@ stages:
 # requiring the environment of python
 image: python:3.9-buster
 
-before_script:
-  - pip install -r requirements.txt
-
 jupyter-build:
   stage: build
   script:
+    - pip install -r requirements.txt
     - jupyter-book build ./docs/ # build to public path
   artifacts:
     paths: