Skip to content
Merged
Show file tree
Hide file tree
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
9 changes: 7 additions & 2 deletions .github/workflows/code_changes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,14 @@ jobs:
- name: UV sync
run: uv sync
- name: Run tests with coverage
run: make test
run: |
# Only export token if non-empty (defensive against missing secrets)
if [ -n "$HF_TOKEN_VALUE" ]; then
export HUGGING_FACE_TOKEN="$HF_TOKEN_VALUE"
fi
make test
env:
HUGGING_FACE_TOKEN: ${{ secrets.HUGGING_FACE_TOKEN }}
HF_TOKEN_VALUE: ${{ secrets.HUGGING_FACE_TOKEN }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/pr_code_changes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,14 @@ jobs:
- name: UV sync
run: uv sync
- name: Run tests with coverage
run: make test
run: |
# Only export token if non-empty (avoids 'Bearer ' error for Dependabot PRs)
if [ -n "$HF_TOKEN_VALUE" ]; then
export HUGGING_FACE_TOKEN="$HF_TOKEN_VALUE"
fi
make test
env:
HUGGING_FACE_TOKEN: ${{ secrets.HUGGING_FACE_TOKEN }}
HF_TOKEN_VALUE: ${{ secrets.HUGGING_FACE_TOKEN }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
Expand Down
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: patch
changes:
fixed:
- CI workflows now handle missing HUGGING_FACE_TOKEN gracefully, allowing Dependabot PRs to run tests without failing on empty Bearer token errors.