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
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

View File

@ -87,4 +87,10 @@ jobs:
uses: codecov/codecov-action@v5
with:
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 }}