Skip to content

Commit c3fcc82

Browse files
[PR aio-libs#12151/ca2012e9 backport][3.13] Update codecov config for v5 (aio-libs#12159)
**This is a backport of PR aio-libs#12151 as merged into master (ca2012e).** Co-authored-by: Sam Bull <git@sambull.org>
1 parent 5351c98 commit c3fcc82

2 files changed

Lines changed: 21 additions & 2 deletions

File tree

.codecov.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,27 @@
11
codecov:
22
branch: master
33
notify:
4-
after_n_builds: 13
4+
manual_trigger: true
5+
6+
comment:
7+
require_head: false
8+
require_base: false
59

610
coverage:
711
range: "95..100"
812

913
status:
1014
project: no
1115

16+
component_management:
17+
individual_components:
18+
- component_id: project
19+
paths:
20+
- aiohttp/**
21+
- component_id: tests
22+
paths:
23+
- tests/**
24+
1225
flags:
1326
library:
1427
paths:

.github/workflows/ci-cd.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ jobs:
249249
- name: Upload coverage
250250
uses: codecov/codecov-action@v5
251251
with:
252-
file: ./coverage.xml
252+
files: ./coverage.xml
253253
flags: >-
254254
CI-GHA,OS-${{
255255
runner.os
@@ -319,6 +319,12 @@ jobs:
319319
runs-on: ubuntu-latest
320320

321321
steps:
322+
- name: Trigger codecov notification
323+
uses: codecov/codecov-action@v5
324+
with:
325+
token: ${{ secrets.CODECOV_TOKEN }}
326+
fail_ci_if_error: true
327+
run_command: send-notifications
322328
- name: Decide whether the needed jobs succeeded or failed
323329
uses: re-actors/alls-green@release/v1
324330
with:

0 commit comments

Comments
 (0)