mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-16 06:27:58 +00:00
This PR significantly refactors the Integration Tests workflow. The main goal behind the PR was to enable recording of vision tests which were never run as part of our CI ever before. During debugging, I ended up making several other changes refactoring and hopefully increasing the robustness of the workflow. After doing the experiments, I have updated the trigger event to be `pull_request_target` so this workflow can get write permissions by default but it will run with source code from the base (main) branch in the source repository only. If you do change the workflow, you'd need to experiment using the `workflow_dispatch` triggers. This should not be news to anyone using Github Actions (except me!) It is likely to be a little rocky though while I learn more about GitHub Actions, etc. Please be patient :) --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
23 lines
702 B
YAML
23 lines
702 B
YAML
name: Setup Ollama
|
|
description: Start Ollama
|
|
inputs:
|
|
run-vision-tests:
|
|
description: 'Run vision tests: "true" or "false"'
|
|
required: false
|
|
default: 'false'
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Start Ollama
|
|
shell: bash
|
|
run: |
|
|
if [ "${{ inputs.run-vision-tests }}" == "true" ]; then
|
|
image="ollama-with-vision-model"
|
|
else
|
|
image="ollama-with-models"
|
|
fi
|
|
|
|
echo "Starting Ollama with image: $image"
|
|
docker run -d --name ollama -p 11434:11434 docker.io/llamastack/$image
|
|
echo "Verifying Ollama status..."
|
|
timeout 30 bash -c 'while ! curl -s -L http://127.0.0.1:11434; do sleep 1 && echo "."; done'
|