Skip to content

Commit 23a7711

Browse files
[0.8] Fix codecov flow (#451)
* fix flow (cherry picked from commit 494408a) * add config file (cherry picked from commit b5c618f) * fixes (cherry picked from commit 3eaca32) * another attempt for v4 (cherry picked from commit 0fbd812) * TEMP run coverage fast (cherry picked from commit f7b6c00) * fix path (cherry picked from commit fe23a8f) * Revert "TEMP run coverage fast" This reverts commit f7b6c00. (cherry picked from commit bd74e3d) --------- Co-authored-by: GuyAv46 <guy.avimor@gmail.com> Co-authored-by: GuyAv46 <47632673+GuyAv46@users.noreply.github.com>
1 parent f942ac6 commit 23a7711

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed

.github/codecov.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
codecov:
2+
require_ci_to_pass: false # Enabling Codecov to report status even if the CI fails
3+
notify:
4+
wait_for_ci: false # Enabling Codecov to report coverage even if the CI has not completed
5+
coverage:
6+
status:
7+
project: # Configurations for the project coverage status
8+
default:
9+
# basic
10+
target: auto # target coverage based on the base commit
11+
threshold: 1% # Allow `x%` of coverage to decrease without failing
12+
# advanced
13+
removed_code_behavior: adjust_base # [removals_only, adjust_base, fully_covered_patch, off/False] https://docs.codecov.com/docs/commit-status#removed_code_behavior
14+
15+
patch: # Configurations for the pull request coverage status
16+
default:
17+
# basic
18+
target: auto # target coverage based on the base commit
19+
threshold: 5% # Allow `x%` of coverage to decrease without failing
20+
# Not specifying paths so we get annotations on the PR
21+
# advanced
22+
removed_code_behavior: adjust_base # [removals_only, adjust_base, fully_covered_patch, off/False] https://docs.codecov.com/docs/commit-status#removed_code_behavior

.github/workflows/coverage.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,18 @@ jobs:
3333
runs-on: ${{ needs.start-runner.outputs.label }} # run the job on the newly created runner
3434
steps:
3535
- name: checkout
36-
uses: actions/checkout@v3
36+
uses: actions/checkout@v4
3737
- name: install dependencies
3838
run: sudo .install/install_script.sh
3939
- name: run codecov
4040
run: make coverage
4141
- name: Upload coverage to Codecov
42-
uses: codecov/codecov-action@v3
42+
uses: codecov/codecov-action@v4
4343
with:
44-
files: /bin/Linux-x86_64-debug/cov.info
44+
file: ./bin/Linux-x86_64-debug/cov.info
45+
token: ${{ secrets.CODECOV_TOKEN }}
46+
disable_safe_directory: true
47+
disable_search: true
4548

4649
stop-runner:
4750
name: Stop self-hosted EC2 runner

0 commit comments

Comments
 (0)