Skip to content

Commit 243f9ff

Browse files
authored
Merge pull request #121 from cloudblue/fix-sonar-coverage
Fix sonar coverage
2 parents 02d68ed + 1b5c151 commit 243f9ff

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
1818
steps:
1919
- uses: actions/checkout@v2
20+
with:
21+
fetch-depth: 0
2022
- name: Set up Python ${{ matrix.python-version }}
2123
uses: actions/setup-python@v2
2224
with:
@@ -40,6 +42,9 @@ jobs:
4042
file: ./coverage.xml
4143
fail_ci_if_error: true
4244
verbose: true
45+
- name: Fix coverage report for Sonar
46+
run: |
47+
sed -i 's/\/home\/runner\/work\/connect-python-sdk\/connect-python-sdk\//\/github\/workspace\//g' coverage.xml
4348
- name: SonarCloud
4449
uses: SonarSource/sonarcloud-github-action@master
4550
env:

.github/workflows/deploy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
1315
- name: Set up Python
1416
uses: actions/setup-python@v2
1517
with:
@@ -34,6 +36,9 @@ jobs:
3436
file: ./coverage.xml
3537
fail_ci_if_error: true
3638
verbose: true
39+
- name: Fix coverage report for Sonar
40+
run: |
41+
sed -i 's/\/home\/runner\/work\/connect-python-sdk\/connect-python-sdk\//\/github\/workspace\//g' coverage.xml
3742
- name: SonarCloud
3843
uses: SonarSource/sonarcloud-github-action@master
3944
env:

0 commit comments

Comments
 (0)