Skip to content

Commit

Permalink
Merge pull request #15 from fga-eps-mds/improvement/sonar-cloud-metrics
Browse files Browse the repository at this point in the history
feat: workflow to create coverage.xml file
mateus-lm authored Dec 2, 2023
2 parents d297951 + 7af81c8 commit db2fe4d
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -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
16 changes: 16 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit db2fe4d

Please sign in to comment.