added python coverage test to report

This commit is contained in:
2026-09-30 09:59:32 +02:00
parent 0ead30e740
commit c99a2e66fc
+6 -5
View File
@@ -90,7 +90,6 @@ jobs:
- name: Install dependencies
run: |-
npm install -g c8
npm ci
- name: Run Coverage tests
@@ -98,14 +97,14 @@ jobs:
API_USER: ${{ secrets.API_USER }}
API_PASSWORD: ${{ secrets.API_SECRET }}
run: |-
rm -rf coverage/js
rm -rf coverage
npm run test:coverage
- name: Store Coverage report
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage/js/
path: coverage/
retention-days: 1
@@ -153,11 +152,12 @@ jobs:
uses: actions/download-artifact@v4
with:
name: coverage
path: coverage/js
path: coverage
- name: Verify Coverage report
run: |-
test -f coverage/js/lcov.info
test -s coverage/js/lcov.info
test -s coverage/python/coverage.xml
- name: Run sonar-scanner
env:
@@ -170,6 +170,7 @@ jobs:
-Dsonar.projectKey="$SONAR_PROJECT_KEY" \
-Dsonar.host.url="$SONAR_HOST_URL" \
-Dsonar.javascript.lcov.reportPaths=coverage/js/lcov.info \
-Dsonar.python.coverage.reportPaths=coverage/python/coverage.xml \
-Dsonar.sources=src,public,scripts,server.js,tools/python \
-Dsonar.tests=test,test-support \
-Dsonar.test.inclusions=test/**/*.test.js \