File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636 args : >
3737 -Dsonar.host.url=https://sonarcloud.io
3838 -Dsonar.organization=codingworkflow
39- -Dsonar.projectKey=codingworkflow_claude-code-api
39+ -Dsonar.projectKey=codingworkflow_claude-code-a-api
40+ -Dsonar.python.coverage.reportPaths=dist/quality/coverage/coverage.xml
41+ -Dsonar.python.xunit.reportPath=dist/quality/sonar/xunit-report.xml
4042
4143 - name : SonarCloud quality gate
4244 uses : SonarSource/sonarqube-quality-gate-action@v1.1.0
Original file line number Diff line number Diff line change @@ -63,7 +63,12 @@ SONAR_PROJECT_KEY="${SONAR_PROJECT_KEY:-${SONAR_CLOUD_PROJECT:-claude-code-api}}
6363# Generate coverage for SonarCloud
6464echo " Generating coverage report for SonarCloud..."
6565mkdir -p dist/quality/coverage dist/quality/sonar
66- python -m pytest --cov=claude_code_api --cov-report=xml --cov-report=term-missing -v tests/
66+ python -m pytest \
67+ --cov=claude_code_api \
68+ --cov-report=xml:dist/quality/coverage/coverage.xml \
69+ --cov-report=term-missing \
70+ --junitxml=dist/quality/sonar/xunit-report.xml \
71+ -v tests/
6772
6873echo " Running SonarCloud scanner..."
6974echo " Organization: $SONAR_ORG "
You can’t perform that action at this time.
0 commit comments