From 0ba26d35f1a2b475f94a1e4c20675cf483f924d4 Mon Sep 17 00:00:00 2001 From: leehk Date: Mon, 21 Apr 2025 11:47:45 +0800 Subject: [PATCH] update with token --- .github/workflows/build.yml | 1 + .github/workflows/template_unit_pytest.yml | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e39d0a3..57618ae 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,6 +16,7 @@ jobs: name: Run Backend unit tests permissions: checks: write + secrets: inherit # Inherit secrets from the parent workflow # Call the reusable workflow for unit tests uses: ./.github/workflows/template_unit_pytest.yml # Pass parameters as inputs to the reusable workflow diff --git a/.github/workflows/template_unit_pytest.yml b/.github/workflows/template_unit_pytest.yml index 8b37036..3976008 100644 --- a/.github/workflows/template_unit_pytest.yml +++ b/.github/workflows/template_unit_pytest.yml @@ -87,4 +87,10 @@ jobs: uses: codecov/codecov-action@v5 with: files: ${{ env.TESTS_COVERAGE_REPORT_PATH }} - fail_ci_if_error: true \ No newline at end of file + fail_ci_if_error: true + flags: unittests + name: codecov-coverage + verbose: true + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} +