Skip to content

Commit 6add5b3

Browse files
committed
add codecov
Signed-off-by: oliver könig <okoenig@nvidia.com>
1 parent fb2554d commit 6add5b3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/cicd-main.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ jobs:
396396
uses: actions/download-artifact@v4
397397
with:
398398
path: ${{ github.run_id }}/current
399-
399+
400400
- name: Get total coverage of current branch
401401
shell: bash -x -e -u -o pipefail {0}
402402
if: always()
@@ -411,6 +411,12 @@ jobs:
411411
REPORT=$(coverage report)
412412
TOTAL=$(echo "$REPORT" | grep "TOTAL" | awk '{print substr($NF, 1, length($NF)-1)}')
413413
echo "main=${TOTAL}" | tee -a "$GITHUB_OUTPUT"
414+
415+
- name: Upload coverage reports to Codecov
416+
uses: codecov/codecov-action@v5
417+
with:
418+
directory: ${{ github.run_id }}/current
419+
token: ${{ secrets.CODECOV_TOKEN }}
414420

415421
- name: Upload artifacts
416422
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)