From f45d3262d5ea9585461c5d6c793f06674a6958cb Mon Sep 17 00:00:00 2001 From: leehk Date: Mon, 21 Apr 2025 12:50:48 +0800 Subject: [PATCH] try new solution --- .github/workflows/template_unit_pytest.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/template_unit_pytest.yml b/.github/workflows/template_unit_pytest.yml index a2e8c05..1ddf58d 100644 --- a/.github/workflows/template_unit_pytest.yml +++ b/.github/workflows/template_unit_pytest.yml @@ -83,13 +83,10 @@ jobs: name: ${{ inputs.projectName }}-coverage-report path: ${{ env.TESTS_COVERAGE_REPORT_PATH }} - - name: Upload coverage to Codecov - - uses: codecov/codecov-action@v4 + - name: Report Coverage + uses: dawidd6/action-coverage-report@v1.6.0 with: - files: ${{ env.TESTS_COVERAGE_REPORT_PATH }} - fail_ci_if_error: true - flags: unittests - name: codecov-coverage - token: ${{ secrets.CODECOV_TOKEN }} # Set this secret in your repository settings - + path: ${{ env.TESTS_COVERAGE_REPORT_PATH }} + output_format: markdown + github_token: ${{ github.token }} + minimum_coverage: 0