dont pull ollama for replay mode

This commit is contained in:
Ashwin Bharambe 2025-07-31 15:04:06 -07:00
parent ea527c5e06
commit 05dfeeb6cc
2 changed files with 6 additions and 2 deletions

View file

@ -16,6 +16,9 @@ inputs:
description: 'Whether to setup provider for vision tests' description: 'Whether to setup provider for vision tests'
required: false required: false
default: 'false' default: 'false'
inference-mode:
description: 'Inference mode (record or replay)'
required: true
runs: runs:
using: 'composite' using: 'composite'
@ -27,13 +30,13 @@ runs:
client-version: ${{ inputs.client-version }} client-version: ${{ inputs.client-version }}
- name: Setup ollama - name: Setup ollama
if: ${{ inputs.provider == 'ollama' }} if: ${{ inputs.provider == 'ollama' && inputs.inference-mode == 'record' }}
uses: ./.github/actions/setup-ollama uses: ./.github/actions/setup-ollama
with: with:
run-vision-tests: ${{ inputs.run-vision-tests }} run-vision-tests: ${{ inputs.run-vision-tests }}
- name: Setup vllm - name: Setup vllm
if: ${{ inputs.provider == 'vllm' }} if: ${{ inputs.provider == 'vllm' && inputs.inference-mode == 'record' }}
uses: ./.github/actions/setup-vllm uses: ./.github/actions/setup-vllm
- name: Build Llama Stack - name: Build Llama Stack

View file

@ -82,6 +82,7 @@ jobs:
client-version: ${{ matrix.client-version }} client-version: ${{ matrix.client-version }}
provider: ${{ matrix.provider }} provider: ${{ matrix.provider }}
run-vision-tests: ${{ matrix.run-vision-tests }} run-vision-tests: ${{ matrix.run-vision-tests }}
inference-mode: 'replay'
- name: Run tests - name: Run tests
uses: ./.github/actions/run-and-record-tests uses: ./.github/actions/run-and-record-tests