Skip to content

Commit

Permalink
try changing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 committed Mar 6, 2024
1 parent 67decea commit ddf0356
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/ollama.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit ddf0356

Please sign in to comment.