Skip to content

Commit c5ce8a9

Browse files
committed
Add comments and debug info
1 parent ee19d01 commit c5ce8a9

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.github/workflows/test-pr.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,17 @@ jobs:
6969
7070
- name: Run Gradio app tests
7171
run: |
72-
# Set up Ollama backend
72+
echo "Installing ollama..."
7373
curl -fsSL https://ollama.com/install.sh | sh
74+
7475
# Give ollama systemd unit time to start
7576
sleep 5
76-
ollama pull smollm2:135m
77-
# Run the Gradio tests against Ollama
77+
78+
MODEL=smollm2:135m
79+
echo "Pulling model $MODEL..."
80+
ollama pull $MODEL
81+
82+
echo "Running Gradio test script"
7883
./test-images.sh $(git rev-parse --short ${{ github.sha }})
7984
working-directory: web-apps
8085

web-apps/test-images.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
#!/bin/bash
22
set -e
33

4+
# NOTE(sd109): This script relies on docker host networking in order
5+
# to communicate from Gradio to ollama running on localhost. This means
6+
# it does not work on MacOS since docker host networking does not work.
7+
# It is intended to be run on a Linux machine and is primarily used in
8+
# GitHub runners as part of CI testing.
9+
410
IMAGE_TAG="${1:-latest}"
511
echo Testing image tag $IMAGE_TAG
612

0 commit comments

Comments
 (0)