From ddf035607a28bae917279b34c00772a5eea2c02d Mon Sep 17 00:00:00 2001 From: anakin87 Date: Wed, 6 Mar 2024 15:37:50 +0100 Subject: [PATCH] try changing workflow --- .github/workflows/ollama.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ollama.yml b/.github/workflows/ollama.yml index 055f63dd0..dc4c25967 100644 --- a/.github/workflows/ollama.yml +++ b/.github/workflows/ollama.yml @@ -33,16 +33,18 @@ jobs: matrix: os: [ubuntu-latest] python-version: ["3.9","3.10","3.11"] - services: - ollama: - image: ollama/ollama:latest - options: --name ollama - ports: - - 11434:11434 steps: - uses: actions/checkout@v4 + - name: Install Ollama and pull the required models + run: | + curl -fsSL https://ollama.com/install.sh | sh + ollama serve & + sleep 10 + ollama pull ${{ env.LLM_FOR_TESTS }} + ollama pull ${{ env.EMBEDDER_FOR_TESTS }} + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: @@ -55,12 +57,6 @@ 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: Pull the Embedding Model in the Ollama service - run: docker exec ollama ollama pull ${{ env.EMBEDDER_FOR_TESTS }} - - name: Generate docs if: matrix.python-version == '3.9' && runner.os == 'Linux' run: hatch run docs