Skip to content

Commit

Permalink
FIX: set CODECOV_TOKEN in secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Jan 10, 2025
1 parent 3eec631 commit 69f3cc8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ jobs:
pytest:
uses: ComPWA/actions/.github/workflows/[email protected]
with:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
coverage-target: compwa_policy
macos-python-version: "3.9"
specific-pip-packages: ${{ inputs.specific-pip-packages }}
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
style:
if: inputs.specific-pip-packages == ''
secrets:
Expand Down
5 changes: 4 additions & 1 deletion src/compwa_policy/check_dev_files/github_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,10 @@ def __update_pytest_section(
with_section["additional-extras"] = " ".join(test_extras)
if CONFIG_PATH.codecov.exists():
with_section["coverage-target"] = __get_package_name()
with_section["CODECOV_TOKEN"] = "${{ secrets.CODECOV_TOKEN }}" # noqa: S105
secrets = {

Check warning on line 262 in src/compwa_policy/check_dev_files/github_workflows.py

View check run for this annotation

Codecov / codecov/patch

src/compwa_policy/check_dev_files/github_workflows.py#L262

Added line #L262 was not covered by tests
"CODECOV_TOKEN": "${{ secrets.CODECOV_TOKEN }}",
}
config["jobs"]["pytest"]["secrets"] = secrets

Check warning on line 265 in src/compwa_policy/check_dev_files/github_workflows.py

View check run for this annotation

Codecov / codecov/patch

src/compwa_policy/check_dev_files/github_workflows.py#L265

Added line #L265 was not covered by tests
if not no_macos:
with_section["macos-python-version"] = DoubleQuotedScalarString("3.9")
if skip_tests:
Expand Down

0 comments on commit 69f3cc8

Please sign in to comment.