Enable Ollama integration test

Currently, test is disable because in every run the image should
be downloaded and then pull the model. Now, taking advantage of
Testcontainers and a GHA, a new image is created on-the-fly with
the model in it and then cached, so, next executions will reuse the
cached image instead.

Fixes #121
This commit is contained in:
Eddú Meléndez
2023-11-18 22:11:43 -06:00
committed by Christian Tzolov
parent 6de57d5f37
commit 246ba173fe
3 changed files with 96 additions and 5 deletions

View File

@@ -19,6 +19,11 @@ jobs:
distribution: 'temurin'
cache: 'maven'
- name: Cache Docker images.
uses: ScribeMD/docker-cache@0.3.6
with:
key: docker-${{ runner.os }}-${{ hashFiles('**/OllamaImage.java') }}
- name: Build with Maven and deploy to Artifactory
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}