Skip to content

Commit

Permalink
CI: increased explicit values
Browse files Browse the repository at this point in the history
  • Loading branch information
naman108 committed Oct 19, 2024
1 parent a2d9745 commit 861934f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:
ls -R
cat coverage.xml
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
uses: sonarsource/sonarcloud-github-action@master
with:
projectBaseDir: ${{ github.workspace }}
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
8 changes: 7 additions & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ sonar.organization=freetakteam
#sonar.projectVersion=1.0

# Paths to source directories (comma-separated if multiple)
sonar.sources=./digitalpy
sonar.language=py
sonar.python.version=3

sonar.sources=digitalpy
sonar.tests=tests

sonar.python.coverage.reportPaths=coverage.xml

sonar.scm.exclusions.disabled = true
11 changes: 4 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ deps =
pytest
coverage
-e .
commands =
coverage run -m pytest -rap --junitxml=coverage.xml ./tests/
coverage xml -o coverage.xml
commands = pytest --cov=. --cov-report=xml tests/


[coverage:run]
relative_files = True
source = digitalpy/
branch = True
[tool.coverage.run]
relative_files = true

0 comments on commit 861934f

Please sign in to comment.