From 6bd38f43814fbab638403db64a863fd38764d4f9 Mon Sep 17 00:00:00 2001 From: superical Date: Wed, 17 Apr 2024 15:50:56 +0800 Subject: [PATCH] ci: codecov issue (#170) --- .github/workflows/pull_requests.yml | 2 ++ .github/workflows/tests.yml | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pull_requests.yml b/.github/workflows/pull_requests.yml index 54543d0..9314cd4 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 + secrets: + codecov_token: ${{ secrets.CODECOV_TOKEN }} linters: name: Linters diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 12e5cbe..4cffd6a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,5 +1,8 @@ on: workflow_call: + secrets: + codecov_token: + required: true name: "Tests" @@ -45,7 +48,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: true verbose: true + token: ${{ secrets.codecov_token }}