Skip to content

Commit 183421a

Browse files
committed
[ci] Expose HF_TOKEN to programming-examples-peano test step
Wires the existing HF_TOKEN repository secret into the check-programming-examples-peano invocation in .github/workflows/buildAndTestRyzenAI.yml, so lit tests with REQUIRES: hf_token (currently programming_examples/llama32_1b/run_npu2_verify.lit) can authenticate against Hugging Face Hub for gated model downloads. Tests without REQUIRES: hf_token are unaffected — they continue to run as before. When the secret is unset (e.g. on fork-originating PR builds, where GitHub doesn't expose secrets by policy), the lit feature stays disabled and gated tests skip cleanly with UNSUPPORTED.
1 parent 308b372 commit 183421a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/buildAndTestRyzenAI.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,12 @@ jobs:
137137
# ninja check-air-e2e-chess
138138
139139
# Programming examples set 1: peano tests (retry once on failure for flaky NPU tests)
140-
ninja check-programming-examples-peano || ninja check-programming-examples-peano
140+
# HF_TOKEN exposes the repository secret for tests requiring gated
141+
# Hugging Face model downloads (e.g. llama32_1b/run_npu2_verify.lit).
142+
# Tests without REQUIRES: hf_token are unaffected.
143+
HF_TOKEN="${{ secrets.HF_TOKEN }}" \
144+
ninja check-programming-examples-peano || \
145+
HF_TOKEN="${{ secrets.HF_TOKEN }}" ninja check-programming-examples-peano
141146
142147
# Chess tests disabled to reduce CI time. Uncomment to re-enable:
143148
# ninja check-programming-examples-chess

0 commit comments

Comments
 (0)