From ff0b8fa1dab4de75d96a6e0add49aca46ce14089 Mon Sep 17 00:00:00 2001 From: Zacharis278 Date: Thu, 25 Apr 2024 15:54:40 -0400 Subject: [PATCH] build: replace codecov --- .coveragerc | 1 + .github/workflows/ci.yml | 9 ++++++--- codecov.yml | 15 --------------- 3 files changed, 7 insertions(+), 18 deletions(-) delete mode 100644 codecov.yml diff --git a/.coveragerc b/.coveragerc index a519e2a..c26fb19 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,6 +1,7 @@ [run] branch = True data_file = .coverage +relative_files = True source=learning_assistant omit = test_settings diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e5af682..920d5c5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,7 +38,10 @@ jobs: - name: Run coverage if: matrix.python-version == '3.8' && matrix.toxenv == 'django32' - uses: codecov/codecov-action@v1 + uses: py-cov-action/python-coverage-comment-action@v3 with: - flags: unittests - fail_ci_if_error: true + GITHUB_TOKEN: ${{ github.token }} + MINIMUM_GREEN: 95 + MINIMUM_ORANGE: 84 + ANNOTATE_MISSING_LINES: true + ANNOTATION_TYPE: error diff --git a/codecov.yml b/codecov.yml deleted file mode 100644 index 681e43e..0000000 --- a/codecov.yml +++ /dev/null @@ -1,15 +0,0 @@ -coverage: - status: - project: - default: - enabled: yes - target: auto - patch: - default: - enabled: yes - target: 100% -ignore: - - "learning_assistant/platform_imports.py" - - -comment: false