update with token

This commit is contained in:
leehk 2025-04-21 11:47:45 +08:00
parent 2b343c9a0d
commit 0ba26d35f1
2 changed files with 8 additions and 1 deletions

View File

@ -16,6 +16,7 @@ jobs:
name: Run Backend unit tests name: Run Backend unit tests
permissions: permissions:
checks: write checks: write
secrets: inherit # Inherit secrets from the parent workflow
# Call the reusable workflow for unit tests # Call the reusable workflow for unit tests
uses: ./.github/workflows/template_unit_pytest.yml uses: ./.github/workflows/template_unit_pytest.yml
# Pass parameters as inputs to the reusable workflow # Pass parameters as inputs to the reusable workflow

View File

@ -88,3 +88,9 @@ jobs:
with: with:
files: ${{ env.TESTS_COVERAGE_REPORT_PATH }} files: ${{ env.TESTS_COVERAGE_REPORT_PATH }}
fail_ci_if_error: true fail_ci_if_error: true
flags: unittests
name: codecov-coverage
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}