From 3a488f4e4e56dd8f33c81e3268e65a493daa70ca Mon Sep 17 00:00:00 2001 From: Marco Heinemann Date: Thu, 15 Jan 2026 15:17:16 +0100 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=94=A7=20Fix=20Codecov=20upload=20con?= =?UTF-8?q?dition?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5f4fc4b47..171b8ea1d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -13,7 +13,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.10' + python-version: "3.10" - uses: pre-commit/action@v3.0.1 # ubc: @@ -78,7 +78,7 @@ jobs: - name: Create coverage run: coverage xml - name: Upload to Codecov - if: github.event.pull_request.head.repo.full_name == github.repository && github.repository == 'useblocks/sphinx-needs' && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.14' + if: github.repository == 'useblocks/sphinx-needs' && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.14' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository) uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -146,7 +146,6 @@ jobs: working-directory: docs check: - # This job does nothing and is only used for the branch protection # see https://github.com/marketplace/actions/alls-green#why From 5c083af3130da45766e7ca81c553848f34a0bcb3 Mon Sep 17 00:00:00 2001 From: Marco Heinemann Date: Thu, 15 Jan 2026 15:19:32 +0100 Subject: [PATCH 2/2] Formatting --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 171b8ea1d..07f26940d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -78,7 +78,7 @@ jobs: - name: Create coverage run: coverage xml - name: Upload to Codecov - if: github.repository == 'useblocks/sphinx-needs' && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.14' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository) + if: github.repository == "useblocks/sphinx-needs" && matrix.os == "ubuntu-latest" && matrix.python-version == "3.14" && (github.event_name == "push" || github.event.pull_request.head.repo.full_name == github.repository) uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }}