diff --git a/.github/workflows/coverage-test.yml b/.github/workflows/coverage-test.yml index 005675f4..bad5ad40 100644 --- a/.github/workflows/coverage-test.yml +++ b/.github/workflows/coverage-test.yml @@ -43,3 +43,8 @@ jobs: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} run: | cd pkpdapp && codecov + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml deleted file mode 100644 index c6ef2c65..00000000 --- a/.github/workflows/sonarqube.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: sonarqube -on: - push: - branches: - - master - pull_request: - types: [opened, synchronize, reopened] -jobs: - sonarcloud: - name: SonarCloud - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - - name: SonarCloud Scan - uses: SonarSource/sonarcloud-github-action@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file diff --git a/sonar-project.properties b/sonar-project.properties index 25f3f17c..2aa6ec5d 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,5 +1,7 @@ sonar.projectKey=pkpdapp-team_pkpdapp sonar.organization=pkpdapp-team +sonar.python.coverage.reportPaths=pkpdapp/coverage.xml + # This is the name and version displayed in the SonarCloud UI. #sonar.projectName=pkpdapp