Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Enables Codecov test reporting for the backend (#9295)

Trenton Hd82555e644b2
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e2ec5e41a..c24678bf2 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -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
diff --git a/pyproject.toml b/pyproject.toml
index d6bb6b5fe..291033c13 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -329,6 +329,8 @@ addopts = [
"--maxprocesses=16",
"--quiet",
"--durations=50",
+ "--junitxml=junit.xml",
+ "-o junit_family=legacy",
]
norecursedirs = [ "src/locale/", ".venv/", "src-ui/" ]