diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4c84edb9d13d57fdb43a50003d9c19e3887ece22..44dbf1038a1efe69303a72addfb8c9ef54c264fa 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -116,6 +116,7 @@ build-developers-doc:
     - python3 -m venv doc-venv
     - . doc-venv/bin/activate
     - pip3 install -r ../requirements.txt
+    - pip3 install -U -r ../requirements.txt
     - pip3 install pdoc3
     - pdoc --html .
     # Create archive
@@ -152,6 +153,7 @@ build-linux:
     # Setup virtual env
     - python3 -m venv linux-venv
     - . linux-venv/bin/activate
+    - pip3 install -r ../requirements.txt
     - pip3 install -U -r ../requirements.txt
     # Run Pyinstaller
     - pyinstaller -y --paths linux-venv/lib/python3.8/site-packages ../src/pamhyr.py
@@ -222,6 +224,7 @@ build-windows:
     - mkdir windows
     - cd windows
     # Setup env
+    - python -m pip install -r ..\requirements.txt
     - python -m pip install -U -r ..\requirements.txt
     # Run Pyinstaller
     - pyinstaller -y ..\src\pamhyr.py
@@ -251,8 +254,9 @@ test-pep8:
     # Setup virtual env
     - python3 -m venv venv
     - . venv/bin/activate
+    - pip3 install -r ../requirements.txt
     - pip3 install -U -r ../requirements.txt
-    - pip3 install -U pycodestyle
+    - pip3 install pycodestyle
     - pycodestyle ../src
   allow_failure: true