From a3b056aa3c5e53458d426e43820239c4d28bac40 Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Mon, 22 Jul 2024 21:19:12 +0100 Subject: [PATCH] Update codecov (#500) --- .coveragerc | 6 ++++++ .github/workflows/ci.yml | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 00000000..2dd98724 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,6 @@ +[run] +branch = True + +[report] +exclude_also = + if TYPE_CHECKING diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 70706b8c..884bc14d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -85,8 +85,8 @@ jobs: - name: Upload coverage uses: codecov/codecov-action@v4 with: - file: ./coverage.xml - flags: unit + fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }} check: # This job does nothing and is only used for the branch protection if: always()