Add Sonar

This commit is contained in:
2022-07-10 17:02:40 +01:00
parent b75300de8e
commit 843b8d9fe1
5 changed files with 20 additions and 10 deletions

View File

@@ -28,9 +28,11 @@ jobs:
run: |
coverage run -m py.test -v
coverage xml
- name: Report results to DeepSource
run: |
curl https://deepsource.io/cli | sh
./bin/deepsource report --analyzer test-coverage --key python --value-file ./coverage.xml
- uses: sonarsource/sonarqube-scan-action@master
env:
DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
- uses: sonarsource/sonarqube-quality-gate-action@master
timeout-minutes: 5
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}