diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 6e2c34b..cc670fc 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -25,14 +25,12 @@ jobs: - uses: actions/setup-python@v5 with: python-version: "3.12" - - name: Install deps run: | sudo apt update sudo apt install -y pipx git pipx ensurepath pipx install poetry - - name: Test coverage for Kube API - run: | + export PATH=/root/.local/bin:$PATH cd microservices/kubeApi poetry install --no-root diff --git a/microservices/kubeApi/pyproject.toml b/microservices/kubeApi/pyproject.toml index b6330ec..5e9c1a2 100644 --- a/microservices/kubeApi/pyproject.toml +++ b/microservices/kubeApi/pyproject.toml @@ -21,9 +21,6 @@ httpx = "^0.20.0" pytest-cov = "^5.0.0" pytest-mock = "^3.14.0" -[tool.coverage.run] -relative_files = true - [build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api" diff --git a/sonar-project.properties b/sonar-project.properties index 85ea1aa..a23d813 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,22 +1,21 @@ sonar.organization=bcgov-oss sonar.projectKey=gwa-api -#sonar.sources=src sonar.python.coverage.reportPaths=microservices/*/coverage.xml # relative paths to source directories. More details and properties are described # in https://docs.sonarsource.com/sonarcloud/advanced-setup/analysis-scope/ -# sonar.sources=microservices/gatewayApi/auth, \ -# microservices/gatewayApi/clients, \ -# microservices/gatewayApi/tests, \ -# microservices/gatewayApi/v1, \ -# microservices/gatewayApi/v2, \ -# microservices/gatewayJobScheduler, \ -# microservices/kubeApi/ \ +sonar.sources=microservices/gatewayApi/auth, \ + microservices/gatewayApi/clients, \ + microservices/gatewayApi/tests, \ + microservices/gatewayApi/v1, \ + microservices/gatewayApi/v2, \ + microservices/gatewayJobScheduler, \ + microservices/kubeApi/ \ # sonar.sources=microservices/kubeApi/ \ -kubeApi.sonar.projectBaseDir=microservices -kubeApi.sonar.sources=kubeApi/auth,kubeApi/clients,kubeApi/routers -kubeApi.sonar.python.coverage.reportPaths=kubeApi/coverage.xml +# kubeApi.sonar.projectBaseDir=microservices +# kubeApi.sonar.sources=kubeApi/auth,kubeApi/clients,kubeApi/routers +# kubeApi.sonar.python.coverage.reportPaths=kubeApi/coverage.xml #sonar.python.coverage.reportPaths=microservices/*/coverage.xml \ No newline at end of file