mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-02 08:44:44 +00:00
ci(installer): end-to-end smoke test and scheduled health check
This commit is contained in:
parent
9edda486ae
commit
d843672482
1 changed files with 37 additions and 0 deletions
37
.github/workflows/install-script-ci.yml
vendored
Normal file
37
.github/workflows/install-script-ci.yml
vendored
Normal file
|
@ -0,0 +1,37 @@
|
|||
name: Installer CI
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- 'install.sh'
|
||||
push:
|
||||
paths:
|
||||
- 'install.sh'
|
||||
schedule:
|
||||
- cron: '0 2 * * *' # every day at 02:00 UTC
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Bash syntax check
|
||||
run: bash -n install.sh
|
||||
|
||||
smoke-test:
|
||||
needs: lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Make installer executable
|
||||
run: chmod +x install.sh
|
||||
- name: Run installer end-to-end
|
||||
run: ./install.sh
|
||||
- name: Wait for health endpoint
|
||||
run: |
|
||||
timeout 120 bash -c \
|
||||
'until curl -fsS http://localhost:8321/v1/health; do sleep 1; done'
|
||||
- name: Cleanup
|
||||
run: |
|
||||
docker rm -f ollama-server llama-stack || true
|
||||
docker network rm llama-stack-net || true
|
Loading…
Add table
Add a link
Reference in a new issue