From 428d509be03438c956dc71fc75080eb3a0ded3f6 Mon Sep 17 00:00:00 2001 From: Seth Date: Tue, 16 Apr 2024 21:14:18 +0800 Subject: [PATCH] ci: codecov issue --- .github/workflows/pull_requests.yml | 2 ++ .github/workflows/tests.yml | 9 +++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull_requests.yml b/.github/workflows/pull_requests.yml index 54543d0..a2d6942 100644 --- a/.github/workflows/pull_requests.yml +++ b/.github/workflows/pull_requests.yml @@ -8,6 +8,8 @@ jobs: tests: name: Tests uses: ./.github/workflows/tests.yml + with: + codecov_token: ${{ secrets.CODECOV_TOKEN }} linters: name: Linters diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c1c2cfd..e26004f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,5 +1,9 @@ on: workflow_call: + inputs: + codecov_token: + required: true + type: string name: "Tests" @@ -45,7 +49,8 @@ jobs: uses: actions/download-artifact@v3 with: name: test-coverage - - uses: codecov/codecov-action@v3 + - uses: codecov/codecov-action@v4 with: - fail_ci_if_error: false + fail_ci_if_error: true verbose: true + token: ${{ inputs.codecov_token }}