Skip to content
Snippets Groups Projects
Commit 338e4e77 authored by Oscar Gustafsson's avatar Oscar Gustafsson :bicyclist:
Browse files

Add code coverage to PRs

parent 5d38abf4
No related branches found
No related tags found
No related merge requests found
Pipeline #87799 passed
This commit is part of merge request !91. Comments created here will be created in the context of that merge request.
...@@ -8,6 +8,7 @@ before_script: ...@@ -8,6 +8,7 @@ before_script:
- python -m pip install --upgrade pip - python -m pip install --upgrade pip
- python --version - python --version
- pip install pytest pytest-cov sphinx furo numpydoc pytest-xvfb pytest-qt setuptools_scm sphinx-qt-documentation pytest-xdist - pip install pytest pytest-cov sphinx furo numpydoc pytest-xvfb pytest-qt setuptools_scm sphinx-qt-documentation pytest-xdist
- export CPPFLAGS='--coverage'
- pip install . - pip install .
- pip show b_asic - pip show b_asic
...@@ -21,6 +22,8 @@ before_script: ...@@ -21,6 +22,8 @@ before_script:
coverage_report: coverage_report:
coverage_format: cobertura coverage_format: cobertura
path: cov.xml path: cov.xml
coverage: /(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/
run-test-3.8: run-test-3.8:
image: python:3.8 image: python:3.8
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment