]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Enables Codecov test reporting for the backend (#9295)
authorTrenton H <797416+stumpylog@users.noreply.github.com>
Tue, 4 Mar 2025 18:38:06 +0000 (10:38 -0800)
committerGitHub <noreply@github.com>
Tue, 4 Mar 2025 18:38:06 +0000 (18:38 +0000)
.github/workflows/ci.yml
pyproject.toml

index e2ec5e41aefe3710a0cc2f94359c82d0c6fb916a..c24678bf24d3027e1364acba121d74af6cd84e8f 100644 (file)
@@ -167,7 +167,9 @@ jobs:
         uses: actions/upload-artifact@v4
         with:
           name: backend-coverage-report
-          path: coverage.xml
+          path: |
+            coverage.xml
+            junit.xml
           retention-days: 7
           if-no-files-found: error
       -
@@ -315,6 +317,14 @@ jobs:
           # future expansion
           flags: backend
           directory: src/
+      -
+        name: Upload test results to Codecov
+        if: ${{ !cancelled() }}
+        uses: codecov/test-results-action@v1
+        with:
+          token: ${{ secrets.CODECOV_TOKEN }}
+          flags: backend
+          directory: src/
       -
         name: Use Node.js 20
         uses: actions/setup-node@v4
index d6bb6b5fe4c5c5c7df11fb973eaf7bb74ae05973..291033c135299175da6c725c84b3b2f140714b93 100644 (file)
@@ -329,6 +329,8 @@ addopts = [
   "--maxprocesses=16",
   "--quiet",
   "--durations=50",
+  "--junitxml=junit.xml",
+  "-o junit_family=legacy",
 ]
 norecursedirs = [ "src/locale/", ".venv/", "src-ui/" ]