Skip to content

Commit

Permalink
feat(ci): integrate SonarCloud analysis and coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans-Chrstian committed Jun 27, 2024
1 parent 5d35b93 commit 9e44317
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,19 @@ jobs:
ckan -c test.ini db init
- name: Run tests
run: pytest --ckan-ini=test.ini --cov=ckanext.fairdatapoint --disable-warnings ckanext/fairdatapoint
run: pytest --ckan-ini=test.ini --cov=ckanext.fairdatapoint --disable-warnings ckanext/fairdatapoint coverage xml -o coverage.xml
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
with:
args: >
-Dsonar.organization=genomicdatainfrastructure
-Dsonar.projectKey=GenomicDataInfrastructure_gdi-userportal-ckanext-fairdatapoint
-Dsonar.sources=.
-Dsonar.tests=ckanext/fairdatapoint
-Dsonar.python.coverage.reportPaths=coverage.xml
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

- uses: actions/checkout@v4
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v2

0 comments on commit 9e44317

Please sign in to comment.