Skip to content

Commit

Permalink
ci: experiment with codecov "merge context"
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Oct 19, 2024
1 parent 8288fb9 commit c029640
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -439,10 +439,10 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
# Use the PR head, not the merge commit, because the head commit (and the base)
# is what codecov uses to calculate diffs.
ref: ${{ github.event.pull_request.head.sha }}
# with:
# # Use the PR head, not the merge commit, because the head commit (and the base)
# # is what codecov uses to calculate diffs.
# ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-python@v5
with:
python-version: '3.12'
Expand Down
10 changes: 9 additions & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
comment: off
comment: false

coverage:
status:
merge:
project:
default:
target: auto
# Allow a tiny drop of overall project coverage in PR to reduce spurious failures.
threshold: 0.25%
project:
default:
target: auto
# Allow a tiny drop of overall project coverage in PR to reduce spurious failures.
threshold: 0.25%
branches:
- main

ignore:
- tests/
Expand Down

0 comments on commit c029640

Please sign in to comment.