This commit is contained in:
Ashwin Bharambe 2025-07-30 23:05:41 -07:00
parent 2dcbf58817
commit 890c791c70
4 changed files with 38 additions and 11 deletions

View file

@ -27,6 +27,26 @@ outputs:
runs:
using: 'composite'
steps:
- name: Run Llama Stack Server
if: ${{ contains(inputs.stack-config, 'server:') }}
run: |
# Run this so pytest in a loop doesn't start-stop servers in a loop
echo "Starting Llama Stack Server"
nohup uv run llama stack run ci-tests --image-type venv > server.log 2>&1 &
echo "Waiting for Llama Stack Server to start"
for i in {1..30}; do
if curl -s http://localhost:8321/v1/health | grep -q "OK"; then
echo "Llama Stack Server started"
exit 0
fi
sleep 1
done
echo "Llama Stack Server failed to start"
cat server.log
exit 1
- name: Run Integration Tests
env:
LLAMA_STACK_CLIENT_TIMEOUT: "300"