From 4f501b61396869c73f2e9f97e962dcf45b3ec024 Mon Sep 17 00:00:00 2001 From: David Orme Date: Fri, 11 Oct 2024 10:22:14 +0100 Subject: [PATCH] Attempt to stop bots from codecov upload --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a23c5291f..35f115b31 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,7 +47,15 @@ jobs: run: poetry run pytest --cov-report xml - name: Upload coverage to Codecov - if: (matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10') + if: >- + ${{ ! ( + github.event.pull_request.user.login == 'dependabot[bot]' || + github.event.pull_request.user.login == 'pre-commit-ci[bot]' + ) && ( + matrix.os == 'ubuntu-latest' && + matrix.python-version == '3.10' + ) + }} uses: codecov/codecov-action@v4 with: fail_ci_if_error: true