Fix ollama IT execution

This commit is contained in:
Mark Pollack
2024-11-19 15:13:44 -05:00
parent 20f04775a1
commit 4363c95763
2 changed files with 6 additions and 2 deletions

View File

@@ -5,6 +5,10 @@ inputs:
model-name:
description: "SpringAI Model to integration test"
required: true
maven-properties:
description: "Maven properties to pass to the build (e.g., -Dskip.vectorstore.milvus=true -Dskip.vectorstore.neo4j=true)"
required: false
default: ""
runs:
using: "composite"
@@ -38,4 +42,4 @@ runs:
- name: Run ${{ inputs.model-name }} model tests
shell: bash
run: cd spring-ai && ./mvnw -pl models/spring-ai-${{ inputs.model-name }} -Pintegration-tests -Dfailsafe.rerunFailingTestsCount=2 verify
run: cd spring-ai && ./mvnw -pl models/spring-ai-${{ inputs.model-name }} -Pintegration-tests ${{ inputs.maven-properties }} -Dfailsafe.rerunFailingTestsCount=2 verify

View File

@@ -16,7 +16,6 @@ jobs:
ports:
- 11434:11434
env:
OLLAMA_TESTS_ENABLED: true
OLLAMA_WITH_REUSE: true
steps:
- name: Checkout the action
@@ -37,6 +36,7 @@ jobs:
uses: ./.github/actions/do-integration-test
with:
model-name: ollama
maven-properties: "-Dskip.model.ollama=false"
# Anthrohpic is overloaded :(
#