diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d8423eee3adb983a0f847d929afcdd741dbcfa50..7880d70a80f779b83ee2b5afdf08e2559da9e7ad 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -19,7 +19,7 @@ stages:
   python3 -m venv venv
   source venv/bin/activate
   pip install -U pip setuptools wheel setuptools_scm
-  pip install pytest
+  pip install pytest flake8
 
 
 test-python3.8:
@@ -27,6 +27,7 @@ test-python3.8:
     script:
         - *virtualenv_definition
         - pytest ./tests/test_general.py
+        - flake8 .
 
 # before_script:
 #   - python -V               # Print out python version for debugging