Enable anthropic, add .gitignore, use ollama container vs install

This commit is contained in:
Mark Pollack
2024-11-19 09:21:21 -05:00
parent 4cd9bbb543
commit bdd7664682
2 changed files with 58 additions and 5 deletions

View File

@@ -10,6 +10,16 @@ jobs:
test-ollama:
runs-on: ubuntu-latest
services:
ollama:
image: ollama/ollama:latest
ports:
- 11434:11434
options: >-
--health-cmd="curl --fail http://localhost:11434/health || exit 1"
--health-interval=10s
--health-timeout=5s
--health-retries=5
env:
OLLAMA_TESTS_ENABLED: true
OLLAMA_WITH_REUSE: true
@@ -17,11 +27,11 @@ jobs:
- name: Checkout the action
uses: actions/checkout@v4
- name: Install Ollama
run: |
curl -fsSL https://ollama.com/install.sh | sh
ollama serve &
sleep 10 # Give Ollama time to start up
# - name: Install Ollama
# run: |
# curl -fsSL https://ollama.com/install.sh | sh
# ollama serve &
# sleep 10 # Give Ollama time to start up
- name: Configure Testcontainers
run: |

43
.gitignore vendored Normal file
View File

@@ -0,0 +1,43 @@
target
.classpath
.project
.settings
bin
build.log
integration-repo
ivy-cache
spring-build
derby-home
derbydb
derby.log
com.springsource.sts.config.flow.prefs
s3.properties
.idea
*.iml
*.ipr
*.iws
.*.swp
.DS_Store
.springBeans
build
.gradle
out
/.gradletasknamecache
**/*.flattened-pom.xml
vscode
settings.json
node
node_modules
package-lock.json
package.json
.vscode
.antlr
shell.log
.profiler
/spring-ai-spring-boot-autoconfigure/nbproject/
/vector-stores/spring-ai-cassandra-store/nbproject/