From fa7fc9e63d45f44af57dd6ad7636a2a16f04b8c4 Mon Sep 17 00:00:00 2001 From: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com> Date: Tue, 15 Apr 2025 18:12:57 +0200 Subject: [PATCH] fix(codecov): fix codecov argument and yaml file (#1399) * fix(codecov): fix codecov argument and yaml file Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com> * ci: set the codecov status to success even if the CI fails Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com> --------- Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com> --- .github/codecov.yml | 13 +++++++------ .github/workflows/checks.yml | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/codecov.yml b/.github/codecov.yml index 944d4a0..a75ce04 100644 --- a/.github/codecov.yml +++ b/.github/codecov.yml @@ -7,11 +7,12 @@ coverage: default: informational: true target: auto # auto compares coverage to the previous base commit + if_ci_failed: success flags: - docling - comment: - layout: "reach, diff, flags, files" - behavior: default - require_changes: false # if true: only post the comment if coverage changes - branches: # branch names that can post comment - - "main" +comment: + layout: "reach, diff, flags, files" + behavior: default + require_changes: false # if true: only post the comment if coverage changes + branches: # branch names that can post comment + - "main" diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 8b93a56..e64f68c 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -46,7 +46,7 @@ jobs: uses: codecov/codecov-action@v5 with: token: ${{ secrets.CODECOV_TOKEN }} - file: ./coverage.xml + files: ./coverage.xml - name: Run examples run: | for file in docs/examples/*.py; do