diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ffd80aba1e21a7e2158f6a3b4c6ff3e70280effa..19712951e0fe764cfeb2aec7299a9329f2dafd79 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,7 +5,7 @@ pytest:
     - apt-get install -y python3-dev python3-pip graphviz graphviz-dev
     - pip install '.[test]'
     - pytest --cov --cov-report xml:coverage.xml
-  coverage: 'TOTAL.*\s+(\d+%)$'
+  coverage: '/TOTAL .*\s+(\d+%)$/'
   artifacts:
     reports:
       coverage_report: