From 9f56f072c2ab9de94645b5a34870b2664285df3e Mon Sep 17 00:00:00 2001 From: Chris Sewell Date: Mon, 9 Nov 2026 22:35:09 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Make=20the=20Codecov=20upload=20?= =?UTF-8?q?non-blocking?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Skip it on Dependabot runs (no secrets) and set fail_ci_if_error: false. --- .github/workflows/tests.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index daa662e..aab9f7d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -50,13 +50,14 @@ jobs: pytest --cov=mdit_py_plugins --cov-report=xml --cov-report=term-missing - name: Upload to Codecov uses: codecov/codecov-action@v5 - if: github.event.pull_request.head.repo.full_name == github.repository + if: github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' with: token: ${{ secrets.CODECOV_TOKEN }} name: mdit-py-plugins-pytests flags: pytests files: ./coverage.xml - fail_ci_if_error: true + # coverage is informational: an upload failure must not fail CI + fail_ci_if_error: false build: