Skip to content

Commit 39f3442

Browse files
ci(github): harden "Verify CLI run" in workflow test.yml
Step no longer depends on exact model output. It now runs the CLI once under `timeout 90s`, prints the response, requires non-empty stdout, and fails if the CLI emitted its `Error:` prefix.
1 parent 0ab2e9e commit 39f3442

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ jobs:
9292

9393
- name: Verify CLI run
9494
run: |
95-
output=$(code-ollama run qwen2.5:0.5b "Repeat exactly this token and nothing else: INTEGRATION_PASS_7F3A")
95+
output=$(timeout 90s code-ollama run qwen2.5:0.5b "Reply in one short sentence")
9696
printf '%s\n' "$output"
97-
grep -F "INTEGRATION_PASS_7F3A" <<< "$output"
97+
test -n "$output"
98+
! grep -F "Error:" <<< "$output"

0 commit comments

Comments
 (0)