Skip to content

Commit

Permalink
ci: add coverage and junit results to sonarcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
ariwk committed Oct 20, 2024
1 parent 666c5d8 commit 6763b7d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/poetry-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
run: poetry install
- name: Run tests
run: poetry run tox
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@v3
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
release-please:
needs: verify-with-tox
runs-on: ubuntu-latest
Expand Down
17 changes: 17 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
sonar.projectKey=SchweizerischeBundesbahnen_python-requirements-inspector
sonar.organization=schweizerischebundesbahnen

# This is the name and version displayed in the SonarCloud UI.
#sonar.projectName=python-requirements-inspector
#sonar.projectVersion=1.0

# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
sonar.sources=python_requirements_inspector

# Encoding of the source code. Default is default system encoding
sonar.sourceEncoding=UTF-8

# Additional parameters
sonar.python.xunit.reportPaths=junittest.xml
sonar.python.coverage.reportPaths=coverage.xml
sonar.branch.target = main

0 comments on commit 6763b7d

Please sign in to comment.