Skip to content

Commit

Permalink
Merge branch 'feature/ollama_integration' of https://github.com/Alist…
Browse files Browse the repository at this point in the history
…airLR112/haystack-core-integrations into feature/ollama_integration

add remote github actions changes
  • Loading branch information
AlistairLR112 committed Jan 3, 2024
2 parents 1bf42a4 + e5baeee commit 55b9aac
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/ollama.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,17 @@ jobs:
matrix:
os: [ubuntu-latest]
python-version: ["3.9","3.10","3.11"]

services:
ollama:
image: ollama/ollama:latest
ports:
- 11434:11434
options: --name ollama

steps:
- name: Pull the LLM in the Ollama service
run: docker exec ollama ollama pull ${{ env.LLM_FOR_TESTS }}

- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -45,12 +54,6 @@ jobs:
if: matrix.python-version == '3.9'
run: hatch run lint:all

- name: Run Ollama container
working-directory: integrations/ollama
run: |
docker run -d -p 11434:11434 --name ollama ollama/ollama:latest
docker exec ollama ollama pull ${{ env.LLM_FOR_TESTS }}
- name: Run tests
working-directory: integrations/ollama
run: hatch run cov

0 comments on commit 55b9aac

Please sign in to comment.