Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,17 @@ jobs:
uv run --frozen pytest tests/test_imports.py

- name: Import Codecov GPG public key
if: github.actor != 'dependabot[bot]'
run: |
gpg --keyserver keyserver.ubuntu.com --recv-keys 806BB28AED779869

# Dependabot PRs never receive repository secrets (GitHub withholds
# them from dependabot-triggered runs), so CODECOV_TOKEN is empty and
# this step fails with "Token required because branch is protected",
# taking down the whole job even though the tests above passed. Skip
# the upload in that case.
- name: Upload coverage to Codecov
if: github.actor != 'dependabot[bot]'
uses: codecov/codecov-action@v7.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down