Skip to content

Commit 802c907

Browse files
committed
updated coverage calculation for sonarcloud
1 parent 75447cd commit 802c907

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/quality.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
- name: Check style against standards using prospector
2020
run: prospector --zero-exit -o grouped -o pylint:pylint-report.txt
2121
- name: Run unit tests with coverage
22-
run: pytest --cov --cov-report term --cov-report xml --junitxml=xunit-result.xml tests/
22+
run: pytest --cov --cov-config=.coveragerc --cov-report html --cov-report term --cov-report xml --junitxml=coverage/xunit-result.xml
2323
- name: Correct coverage paths
24-
run: sed -i "s+$PWD/++g" coverage.xml
24+
run: sed -i "s+$PWD/++g" coverage/coverage.xml
2525
- name: SonarCloud Scan
2626
uses: sonarsource/sonarcloud-github-action@master
2727
env:

0 commit comments

Comments
 (0)