File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11#! /bin/bash
22set -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+
410IMAGE_TAG=" ${1:- latest} "
511echo Testing image tag $IMAGE_TAG
612
You can’t perform that action at this time.
0 commit comments