diff --git a/.gitea/workflows/build-and-deploy.yaml b/.gitea/workflows/build-and-deploy.yaml index 8f0d467..a6ae804 100644 --- a/.gitea/workflows/build-and-deploy.yaml +++ b/.gitea/workflows/build-and-deploy.yaml @@ -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 \