From 1d285dbb959ad4439f37cf379595579e2c64c86e Mon Sep 17 00:00:00 2001 From: Hassan Kibirige Date: Mon, 19 Feb 2024 22:50:13 +0300 Subject: [PATCH] CI: Skip codecov if releasing --- .github/workflows/release.yml | 2 ++ .github/workflows/testing.yml | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6d414149e..a7bbc1708 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,6 +9,8 @@ jobs: run-tests: name: Run all tests uses: ./.github/workflows/testing.yml + with: + skip_codecov: true check-semver-tag: name: Check if the tag is in semantic version format diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index d1e38f086..ccbe95c60 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -8,7 +8,11 @@ on: - 'v[0-9]*' pull_request: workflow_call: - + inputs: + skip_codecov: + type: boolean + required: false + default: false jobs: unittests: runs-on: ubuntu-latest @@ -63,6 +67,7 @@ jobs: # https://app.codecov.io/github/has2k1/plotnine/settings # https://github.com/has2k1/plotnine/settings/secrets/actions - name: Upload coverage to Codecov + if: ${{ !inputs.skip_codecov }} uses: codecov/codecov-action@v4 with: name: "py${{ matrix.python-version }}"