Skip to content

Fix:#58 Fail CI if Ollama model not found #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
20 changes: 13 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,13 @@ jobs:
set -e
docker run -d --name ollama -p 11434:11434 ollama/ollama:latest
timeout 60 bash -c 'until curl -f http://localhost:11434/api/version; do sleep 2; done'
echo "Pulling Qwen2.5:1.5b"
docker exec ollama ollama pull qwen2.5:1.5b
echo "Pulling Gemma2:2b"
docker exec ollama ollama pull gemma2:2b
echo "Verifying models are available"
docker exec ollama ollama list | grep -q "qwen2.5:1.5b" || exit 1
docker exec ollama ollama list | grep -q "gemma2:2b" || exit 1
echo "Pulling Qwen3:1.7b"
docker exec ollama ollama pull qwen3:1.7b
echo "Pulling Gemma3:4b"
docker exec ollama ollama pull gemma3:4b
docker exec ollama ollama list | grep -q "qwen3:1.7b" || exit 1
docker exec ollama ollama list | grep -q "gemma3:4b" || exit 1

echo "Ollama setup completed."
- name: Install and Run latest Golem Server
run: |
Expand Down Expand Up @@ -149,6 +149,12 @@ jobs:
golem-cli worker invoke test:llm/ollama-1 test5
golem-cli worker invoke test:llm/ollama-1 test6
golem-cli worker invoke test:llm/ollama-1 test7
- name:Fail CI if "model not found" errors exist
run: |
if docker logs ollama | grep -q "model .* not found"; then
echo "Model not found error detected in Ollama logs!"
exit 1
fi
publish-all:
needs:
- tests
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.