From 868401043cd46fa98617ff8b2347cce50e7f11b2 Mon Sep 17 00:00:00 2001 From: Chris Sewell Date: Mon, 9 Nov 2026 22:35:04 +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/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 036bfc4..6bdcb75 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -70,14 +70,15 @@ jobs: run: | pytest --cov=sphinx_design --cov-report=xml --cov-report=term-missing - name: Upload to Codecov - if: (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository) && matrix.python-version == '3.13' && matrix.sphinx-version == '~=8.0' && matrix.os == 'ubuntu-latest' + if: (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository) && github.actor != 'dependabot[bot]' && matrix.python-version == '3.13' && matrix.sphinx-version == '~=8.0' && matrix.os == 'ubuntu-latest' uses: codecov/codecov-action@v7 with: token: ${{ secrets.CODECOV_TOKEN }} name: 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 docs-build-format: