diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2faa187802a0e7bcb4a510941d98bd717e45c010..dbf9c0a437b049658194537f08ebf0339c3ba836 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,11 +1,14 @@
+before_script:
+    - apt update
+    - apt install -y python3
+    - python3 -V
+    - uname -a
+
 unittest:
     image: debian:stretch
     stage: test
     script:
-    - apt update
-    - apt install -y sqlite3 python3 locales-all  python3-flask python3-ldap3 python3-requests python3-lxml python3-icalendar python3-mysql.connector python3-requests python3-coverage git
-    - python3 -V
-    - uname -a
+    - apt install -y sqlite3 locales-all git python3-flask python3-ldap3 python3-requests python3-lxml python3-icalendar python3-mysql.connector python3-requests python3-coverage
     - python3 -m coverage run tests.py
     - python3 -m coverage report --include "./*"
     - python3 -m coverage report -m  --include "./*" > report.txt
@@ -20,8 +23,5 @@ livetest:
     image: debian:stretch
     stage: test
     script:
-    - apt update
-    - apt install -y python3 python3-requests
-    - python3 -V
-    - uname -a
+    - apt install -y python3-requests
     - ./tests/urlcheck_sinf.py
\ No newline at end of file