From a0c9a29364dddb551572864e7bebdca3311507f2 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Thu, 15 Jun 2023 09:41:04 +0100 Subject: [PATCH] Don't run coverage upload on merge queue --- .github/workflows/test_and_deploy.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index 3283b0e8..503599f4 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -58,6 +58,9 @@ jobs: - name: Coverage uses: codecov/codecov-action@v3 + # Don't run coverage on merge queue CI to avoid duplicating reports + # to codecov. See https://github.com/matplotlib/napari-matplotlib/issues/155 + if: github.event_name != 'merge_group' with: token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: true