Skip to content

Commit

Permalink
updated coverage calculation for sonarcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
jspaaks committed Mar 12, 2021
1 parent 75447cd commit 802c907
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
- name: Check style against standards using prospector
run: prospector --zero-exit -o grouped -o pylint:pylint-report.txt
- name: Run unit tests with coverage
run: pytest --cov --cov-report term --cov-report xml --junitxml=xunit-result.xml tests/
run: pytest --cov --cov-config=.coveragerc --cov-report html --cov-report term --cov-report xml --junitxml=coverage/xunit-result.xml
- name: Correct coverage paths
run: sed -i "s+$PWD/++g" coverage.xml
run: sed -i "s+$PWD/++g" coverage/coverage.xml
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
Expand Down

0 comments on commit 802c907

Please sign in to comment.