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