Skip to content

Commit

Permalink
CI: Skip codecov if releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
has2k1 committed Feb 19, 2024
1 parent 09d1495 commit 1d285db
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}"
Expand Down

0 comments on commit 1d285db

Please sign in to comment.