fix: correct coverage source path

This commit is contained in:
2022-12-30 20:42:48 +00:00
parent ae13c34818
commit d40ee01a4a
2 changed files with 4 additions and 1 deletions

3
.coveragerc Normal file
View File

@ -0,0 +1,3 @@
[coverage:run]
relative_files = True
branch = True

View File

@ -33,7 +33,7 @@ jobs:
run: | run: |
coverage run -m pytest -v --junitxml=testresults.xml coverage run -m pytest -v --junitxml=testresults.xml
coverage xml coverage xml
sed -i 's/\/home\/runner\/work\/epage\/epage\//\/github\/workspace\//g' coverage.xml sed -i 's/\/home\/runner\/work\/epage\/epage/\/github\/workspace/g' coverage.xml
- name: SonarCloud Scan - name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master uses: SonarSource/sonarcloud-github-action@master
env: env: