Add integration with coverage.py
Code coverage describes how much source code has been tested. It shows which parts of your code are being exercised by tests and which are not. It’s an important part of testing applications, so it’s strongly recommended to check the coverage of your tests.
If you use test coverage in your code, GitLab can capture its output in the job log using a regular expression. In the pipelines settings, search for the “Test coverage parsing” section.
A few examples of known coverage tools for a variety of languages can be found in the pipelines settings page.
GitLab makes it possible to define the regular expression for coverage report, that each job log will be matched against. This means that each job in the pipeline can have the test coverage percentage value defined.