This commit is contained in:
Ashwin Bharambe 2025-08-18 15:17:28 -07:00
parent 3114e188a8
commit 6b9d14042e
6 changed files with 10 additions and 21 deletions

View file

@ -36,11 +36,7 @@ runs:
- name: Run Integration Tests
shell: bash
run: |
# TODO: make sure this virtual environment is the same as the one used in the setup-runner action
VIRTUAL_ENV=github-actions-runner
source $VIRTUAL_ENV/bin/activate
uv run --verbose --active --no-sync ./scripts/integration-tests.sh \
uv run --no-sync ./scripts/integration-tests.sh \
--stack-config '${{ inputs.stack-config }}' \
--provider '${{ inputs.provider }}' \
--test-subdirs '${{ inputs.test-subdirs }}' \

View file

@ -21,14 +21,8 @@ runs:
- name: Install dependencies
shell: bash
run: |
# explicitly setup a virtual environment distinct from the project one because
# we are going to manipulate it via `llama stack build` among other things.
VIRTUAL_ENV=github-actions-runner
uv venv $VIRTUAL_ENV
source $VIRTUAL_ENV/bin/activate
echo "Updating project dependencies via uv sync"
uv sync --active --all-groups
uv sync --all-groups
echo "Installing ad-hoc dependencies"
uv pip install faiss-cpu

View file

@ -42,9 +42,6 @@ runs:
- name: Build Llama Stack
shell: bash
run: |
VIRTUAL_ENV=github-actions-runner
source $VIRTUAL_ENV/bin/activate
# Install llama-stack-client-python based on the client-version input
if [ "${{ inputs.client-version }}" = "latest" ]; then
echo "Installing latest llama-stack-client-python from main branch"
@ -60,7 +57,7 @@ runs:
echo "Building Llama Stack"
LLAMA_STACK_DIR=. \
uv run --active --no-sync llama stack build --template ci-tests --image-type venv
uv run --no-sync llama stack build --template ci-tests --image-type venv
- name: Configure git for commits
shell: bash

View file

@ -30,7 +30,8 @@ jobs:
- name: Build a single provider
run: |
USE_COPY_NOT_MOUNT=true LLAMA_STACK_DIR=. uv run llama stack build --template starter --image-type container --image-name test
USE_COPY_NOT_MOUNT=true LLAMA_STACK_DIR=. uv run --no-sync \
llama stack build --template starter --image-type container --image-name test
- name: Run installer end-to-end
run: |

View file

@ -144,7 +144,7 @@ jobs:
- name: Build Llama Stack
run: |
uv run llama stack build --template ci-tests --image-type venv
uv run --no-sync llama stack build --template ci-tests --image-type venv
- name: Check Storage and Memory Available Before Tests
if: ${{ always() }}
@ -167,7 +167,8 @@ jobs:
ENABLE_WEAVIATE: ${{ matrix.vector-io-provider == 'remote::weaviate' && 'true' || '' }}
WEAVIATE_CLUSTER_URL: ${{ matrix.vector-io-provider == 'remote::weaviate' && 'localhost:8080' || '' }}
run: |
uv run pytest -sv --stack-config="files=inline::localfs,inference=inline::sentence-transformers,vector_io=${{ matrix.vector-io-provider }}" \
uv run --no-sync \
pytest -sv --stack-config="files=inline::localfs,inference=inline::sentence-transformers,vector_io=${{ matrix.vector-io-provider }}" \
tests/integration/vector_io \
--embedding-model inline::sentence-transformers/all-MiniLM-L6-v2

View file

@ -44,11 +44,11 @@ jobs:
- name: Print distro dependencies
run: |
USE_COPY_NOT_MOUNT=true LLAMA_STACK_DIR=. uv run llama stack build --config tests/external/build.yaml --print-deps-only
USE_COPY_NOT_MOUNT=true LLAMA_STACK_DIR=. uv run --no-sync llama stack build --config tests/external/build.yaml --print-deps-only
- name: Build distro from config file
run: |
USE_COPY_NOT_MOUNT=true LLAMA_STACK_DIR=. uv run llama stack build --config tests/external/build.yaml
USE_COPY_NOT_MOUNT=true LLAMA_STACK_DIR=. uv run --no-sync llama stack build --config tests/external/build.yaml
- name: Start Llama Stack server in background
if: ${{ matrix.image-type }} == 'venv'