diff --git a/.github/workflows/ollama.yml b/.github/workflows/ollama.yml index 793943798..7f61af14e 100644 --- a/.github/workflows/ollama.yml +++ b/.github/workflows/ollama.yml @@ -31,14 +31,11 @@ jobs: services: ollama: image: ollama/ollama:latest + options: --name ollama 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 }} - + steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} @@ -54,6 +51,9 @@ jobs: if: matrix.python-version == '3.9' run: hatch run lint:all + - name: Pull the LLM in the Ollama service + run: docker exec ollama ollama pull ${{ env.LLM_FOR_TESTS }} + - name: Run tests working-directory: integrations/ollama run: hatch run cov