diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 98b78c7..0362b6d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -48,3 +48,5 @@ jobs: env: HOST: "0.0.0.0" DB_HOST: localhost + - name: Generate Sonar-metrics + run: poetry run coverage xml -o coverage.xml diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..e8f49e2 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,16 @@ +sonar.projectKey=fga-eps-mds_2023.2-SINDPOL-Gestao +sonar.organization=fga-eps-mds-1 + +sonar.language=python + +sonar.sources=. +sonar.tests=./gestao/tests +sonar.python.version=3 +sonar.dynamicAnalysis=reuseReports +sonar.sources.exclusions= \ + **/__init__.py \ + **/__pycache__/ \ + /gestao\db\migrations\versions/ \ + src/staticfiles/** + +sonar.python.coverage.reportPaths=coverage.xml