diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 588313849f683d597e460e4445750495d8594764..407149d2b2c1ccdbf2f33f6b88b0900263e9e3c7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -234,6 +234,23 @@ build-windows:
 # TESTS #
 #########
 
+test-pep8:
+  stage: test
+  tags:
+    - linux
+  needs:
+    - job: set-version
+      artifacts: true
+  script:
+    - mkdir -p pep8
+    - cd pep8
+    # Setup virtual env
+    - python3 -m venv venv
+    - . venv/bin/activate
+    - pip3 install -U -r ../requirements.txt
+    - pip3 install -U pycodestyle
+    - pycodestyle ../src
+
 # test-windows:
 #   stage: test
 #   tags: