Skip to content

Commit db8d8de

Browse files
committed
Add coverage
1 parent 1d29993 commit db8d8de

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ jobs:
4040
- name: Install dependencies
4141
run: |
4242
pip install .
43-
pip install pytest
43+
pip install pytest pytest-cov
4444
- name: Run tests
4545
run: |
46-
pytest
46+
pytest --cov=dsp --cov-report xml:coverage.xml
4747
4848
- name: SonarCloud Scan
4949
uses: SonarSource/sonarcloud-github-action@master

sonar-project.properties

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
sonar.projectKey=dsp
22
sonar.organization=cvxgrp
33
sonar.sources=dsp
4-
sonar.language=py
4+
sonar.language=py
5+
sonar.python.coverage.reportPaths=coverage.xml

0 commit comments

Comments
 (0)