Skip to content

Commit 2615fa2

Browse files
authored
Merge pull request #9 from cloudblue/fix-coverage
Fixed coverage for sonar
2 parents 0000bdc + f9bc57d commit 2615fa2

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
@@ -16,6 +16,8 @@ jobs:
1616
python-version: [3.6, 3.7, 3.8]
1717
steps:
1818
- uses: actions/checkout@v2
19+
with:
20+
fetch-depth: 0
1921
- name: Set up Python ${{ matrix.python-version }}
2022
uses: actions/setup-python@v2
2123
with:
@@ -36,6 +38,9 @@ jobs:
3638
file: ./tests/reports/coverage.xml
3739
fail_ci_if_error: true
3840
verbose: true
41+
- name: Fix coverage report for Sonar
42+
run: |
43+
sed -i 's/\/home\/runner\/work\/django-rql\/django-rql\//\/github\/workspace\//g' ./tests/reports/coverage.xml
3944
- name: SonarCloud
4045
uses: SonarSource/sonarcloud-github-action@master
4146
env:

.github/workflows/deploy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
python-version: [3.6, 3.7, 3.8]
1414
steps:
1515
- uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 0
1618
- name: Set up Python ${{ matrix.python-version }}
1719
uses: actions/setup-python@v2
1820
with:
@@ -34,6 +36,9 @@ jobs:
3436
file: ./tests/reports/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\/django-rql\/django-rql\//\/github\/workspace\//g' ./tests/reports/coverage.xml
3742
- name: SonarCloud
3843
uses: SonarSource/sonarcloud-github-action@master
3944
env:

0 commit comments

Comments
 (0)