From d717cbc3590bb3401ff64716d7636f611895e94a 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 +++++++---- openedx_events/tests/test_tooling.py | 5 +++++ 3 files changed, 13 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 diff --git a/openedx_events/tests/test_tooling.py b/openedx_events/tests/test_tooling.py index da480d3d..74425251 100644 --- a/openedx_events/tests/test_tooling.py +++ b/openedx_events/tests/test_tooling.py @@ -379,3 +379,8 @@ def test_load_all_signals(self): OpenEdxPublicSignal.get_signal_by_type('org.openedx.learning.course.enrollment.created.v1'), OpenEdxPublicSignal ) + + +class SirNotAppearingInThisFilm(TestCase): + def never_run(self): + print("Hello")