From 36e9b4c870867bd7f74dbcbf97990e9a22681fec Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Tue, 9 Jan 2024 16:53:10 -0500 Subject: [PATCH] build: replace codecov with python-coverage-comment-action --- .coveragerc | 1 + .github/workflows/ci.yml | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.coveragerc b/.coveragerc index 6e796b61..bd5e6c63 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,5 +1,6 @@ [run] branch = True +relative_files = True data_file = .coverage source=openedx_events omit = diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3c9ae6fe..91e5239b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,9 +36,12 @@ jobs: TOXENV: ${{ matrix.toxenv }} run: tox - - name: Run coverage + - name: Report coverage if: matrix.python-version == '3.8' && matrix.toxenv == 'py38' - uses: codecov/codecov-action@v3 + uses: py-cov-action/python-coverage-comment-action@v3 with: - flags: unittests - fail_ci_if_error: true + GITHUB_TOKEN: ${{ github.token }} + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 85 + ANNOTATE_MISSING_LINES: true + ANNOTATION_TYPE: error