A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Switches to Codecov for coverage reporting and status
Trenton H1547a698cb3a
diff --git a/.codecov.yml b/.codecov.ymlnew file mode 100644index 000000000..c11db1447--- /dev/null+++ b/.codecov.yml@@ -0,0 +1,19 @@+# https://docs.codecov.com/docs/pull-request-comments+# codecov will only comment if coverage changes+comment:+ require_changes: true+coverage:+ status:+ project:+ default:+ # https://docs.codecov.com/docs/commit-status#threshold+ threshold: 1%+ # https://docs.codecov.com/docs/commit-status#only_pulls+ only_pulls: true+ patch:+ default:+ # For the changed lines only, target 75% covered, but+ # allow as low as 50%+ target: 75%+ threshold: 25%+ only_pulls: truediff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex fec1e2b35..ddb83425b 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -119,8 +119,6 @@ jobs:-name: Checkoutuses: actions/checkout@v3- with:- fetch-depth: 0-name: Start containersrun: |@@ -162,27 +160,14 @@ jobs:cd src/pipenv --python ${{ steps.setup-python.outputs.python-version }} run pytest -ra-- name: Get changed files- id: changed-files-specific- uses: tj-actions/changed-files@v35+ name: Upload coverage to Codecov+ if: matrix.python-version == ${{ env.DEFAULT_PYTHON_VERSION }}+ uses: codecov/codecov-action@v3with:- files: |- src/**- -- name: List all changed files- run: |- for file in ${{ steps.changed-files-specific.outputs.all_changed_files }}; do- echo "${file} was changed"- done- -- name: Publish coverage results- if: matrix.python-version == ${{ env.DEFAULT_PYTHON_VERSION }} && steps.changed-files-specific.outputs.any_changed == 'true'- env:- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}- # https://github.com/coveralls-clients/coveralls-python/issues/251- run: |- cd src/- pipenv --python ${{ steps.setup-python.outputs.python-version }} run coveralls --service=github+ # not required for public repos, but intermittently fails otherwise+ token: ${{ secrets.CODECOV_TOKEN }}+ # future expansion+ flags: backend-name: Stop containersif: always()diff --git a/README.md b/README.mdindex a94fbac30..ca21d27ea 100644--- a/README.md+++ b/README.md@@ -1,7 +1,7 @@[](https://github.com/paperless-ngx/paperless-ngx/actions)[](https://crowdin.com/project/paperless-ngx)[](https://docs.paperless-ngx.com)-[](https://coveralls.io/github/paperless-ngx/paperless-ngx?branch=master)+[](https://codecov.io/gh/paperless-ngx/paperless-ngx)[](https://matrix.to/#/%23paperlessngx%3Amatrix.org)[](https://demo.paperless-ngx.com)diff --git a/src/setup.cfg b/src/setup.cfgindex 409c5c7cd..dde4642eb 100644--- a/src/setup.cfg+++ b/src/setup.cfg@@ -7,7 +7,7 @@ max-line-length = 88[tool:pytest]DJANGO_SETTINGS_MODULE=paperless.settings-addopts = --pythonwarnings=all --cov --cov-report=html --numprocesses auto --quiet+addopts = --pythonwarnings=all --cov --cov-report=html --cov-report=xml --numprocesses auto --quietenv =PAPERLESS_DISABLE_DBHANDLER=true