Skip to content

Commit 67c40f3

Browse files
committed
Step 2: spin up Ollama and relax model list fields
1 parent d57380b commit 67c40f3

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/ml-drift.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ jobs:
3434
sleep 1
3535
done
3636
37+
- name: Start Ollama
38+
run: |
39+
docker run -d --rm --name ollama -p 11434:11434 ollama/ollama:latest
40+
for i in $(seq 1 60); do
41+
curl -fs http://localhost:11434/api/tags > /dev/null && break
42+
sleep 1
43+
done
44+
3745
- name: Run ML service drift checks
3846
# This is an informational report. A GitHub-hosted runner has no local
3947
# ML services, so connections will be refused unless you run services in

terradev_cli/drift_monitor/ml_service_contracts/ollama.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ endpoints:
1010
expected_status: 200
1111
expected_response_fields:
1212
- models
13+
optional_response_fields:
1314
- name
1415
- model
15-
optional_response_fields:
1616
- modified_at
1717
- size
1818
- details

0 commit comments

Comments
 (0)