diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3876caa..c1eb697 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,6 +17,8 @@ jobs: python-version: [2.7, 3.5, 3.6, 3.7, 3.8] steps: - uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: @@ -40,6 +42,9 @@ jobs: file: ./coverage.xml fail_ci_if_error: true verbose: true + - name: Fix coverage report for Sonar + run: | + sed -i 's/\/home\/runner\/work\/connect-python-sdk\/connect-python-sdk\//\/github\/workspace\//g' coverage.xml - name: SonarCloud uses: SonarSource/sonarcloud-github-action@master env: diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8106be3..2eb8053 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,6 +10,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Set up Python uses: actions/setup-python@v2 with: @@ -34,6 +36,9 @@ jobs: file: ./coverage.xml fail_ci_if_error: true verbose: true + - name: Fix coverage report for Sonar + run: | + sed -i 's/\/home\/runner\/work\/connect-python-sdk\/connect-python-sdk\//\/github\/workspace\//g' coverage.xml - name: SonarCloud uses: SonarSource/sonarcloud-github-action@master env: