From a151f5928e8365f255bc4152627d9e9e95daefe3 Mon Sep 17 00:00:00 2001 From: Francisco Javier Arceo Date: Fri, 8 Aug 2025 20:52:57 -0400 Subject: [PATCH] updated action to set OLLAMA_URL during replay mode Signed-off-by: Francisco Javier Arceo --- .github/actions/setup-test-environment/action.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/actions/setup-test-environment/action.yml b/.github/actions/setup-test-environment/action.yml index 30b9b0130..4465fe159 100644 --- a/.github/actions/setup-test-environment/action.yml +++ b/.github/actions/setup-test-environment/action.yml @@ -39,6 +39,17 @@ runs: if: ${{ inputs.provider == 'vllm' && inputs.inference-mode == 'record' }} uses: ./.github/actions/setup-vllm + - name: Set provider URLs for replay mode + if: ${{ inputs.inference-mode == 'replay' }} + shell: bash + run: | + # setting so providers get registered in replay mode + if [ "${{ inputs.provider }}" == "ollama" ]; then + echo "OLLAMA_URL=http://localhost:11434" >> $GITHUB_ENV + elif [ "${{ inputs.provider }}" == "vllm" ]; then + echo "VLLM_URL=http://localhost:8000/v1" >> $GITHUB_ENV + fi + - name: Build Llama Stack shell: bash run: |