diff --git a/.github/workflows/py-tests-3_9.yml b/.github/workflows/py-tests-3_9.yml index 915bac9d3dc..208dd8732f1 100644 --- a/.github/workflows/py-tests-3_9.yml +++ b/.github/workflows/py-tests-3_9.yml @@ -77,6 +77,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.INGESTION_SONAR_SECRET }} with: + projectBaseDir: ingestion/ args: > -Dproject.settings=ingestion/sonar-project.properties -Dsonar.pullrequest.key=${{ github.event.pull_request.number }} @@ -92,5 +93,4 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.INGESTION_SONAR_SECRET }} with: - args: > - -Dproject.settings=ingestion/sonar-project.properties + projectBaseDir: ingestion/ diff --git a/ingestion/sonar-project.properties b/ingestion/sonar-project.properties index 89668002b6b..91f1f0192f9 100644 --- a/ingestion/sonar-project.properties +++ b/ingestion/sonar-project.properties @@ -3,9 +3,9 @@ sonar.projectName=open-metadata-ingestion sonar.organization=open-metadata sonar.language=py -sonar.sources=ingestion/src -sonar.tests=ingestion/tests -sonar.exclusions=ingestion/src/metadata_server/static/**,ingestion/src/metadata_server/templates/** -sonar.python.xunit.reportPath=ingestion/junit/test-results-*.xml -sonar.python.coverage.reportPaths=ingestion/ci-coverage.xml +sonar.sources=src +sonar.tests=tests +sonar.exclusions=src/metadata_server/static/**,ingestion/src/metadata_server/templates/** +sonar.python.xunit.reportPath=junit/test-results-*.xml +sonar.python.coverage.reportPaths=coverage.xml sonar.python.version=3.7,3.8,3.9