From 6579c6f05f1d43f0892d27ec2d9dbb40e3cf0763 Mon Sep 17 00:00:00 2001 From: Michele Dolfi Date: Mon, 14 Apr 2025 13:31:19 +0200 Subject: [PATCH] new codecov version and usage of token Signed-off-by: Michele Dolfi --- .github/workflows/checks.yml | 6 +++++- .github/workflows/ci.yml | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index e449955e..8b93a565 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -5,6 +5,9 @@ on: type: boolean description: "If true, the coverage results are pushed to codecov.io." default: true + secrets: + CODECOV_TOKEN: + required: false env: HF_HUB_DOWNLOAD_TIMEOUT: "60" @@ -40,8 +43,9 @@ jobs: poetry run pytest -v --cov=docling --cov-report=xml tests - name: Upload coverage to Codecov if: inputs.push_coverage - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v5 with: + token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage.xml - name: Run examples run: | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0bf45ce3..e2cf18af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,3 +17,5 @@ jobs: code-checks: if: ${{ github.event_name == 'push' || (github.event.pull_request.head.repo.full_name != 'docling-project/docling' && github.event.pull_request.head.repo.full_name != 'docling-project/docling') }} uses: ./.github/workflows/checks.yml + secrets: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}