diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9c4a43508f31e9a8c896f1e9f06f6f2627dbb620..5b0b56dd66bb86abf466542bb8883bae0dfe00e6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,7 +5,7 @@ pytest:
   before_script:
     - python3 -m pip install -r requirements.txt
   script:
-    - pytest --doctest-modules --junitxml=report.xml
+    - pytest --junitxml=report.xml
   artifacts:
     when: always
     reports:
diff --git a/setup.cfg b/setup.cfg
index bbe8ff5bbec20b25090ed6437be7199f2eace5d2..c4a92a3f208746b8103b5ef9a88026231c60bb4d 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -14,3 +14,6 @@ install_requires =
 [flake8]
 max-line-length = 88
 extend-ignore = E203
+
+[tool:pytest]
+addopts = --doctest-modules