Skip to content

Commit aa7760a

Browse files
committed
adding the tests to the quality workflow
1 parent 0ae217d commit aa7760a

File tree

2 files changed

+14
-44
lines changed

2 files changed

+14
-44
lines changed

.github/workflows/quality.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,21 @@ jobs:
3131
path: ~/.cache/pre-commit
3232
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
3333
- name: Install dependencies
34-
run: uv sync --frozen --all-extras
34+
run: uv sync --frozen --all-extras --group dev
3535
- name: Check style and run tests
3636
run: pre-commit run --all-files
37-
- name: Send failure message
37+
- name: Send failure message pre-commit
3838
if: failure() # This step will only run if a previous step failed
3939
run: echo "The quality verification failed. Please run precommit "
40+
- name: Install Ollama
41+
run: curl -fsSL https://ollama.com/install.sh | sh
42+
- name: Pull Llama 3.2:1b model
43+
run: ollama pull llama3.2:1b
44+
- name: Start serving the model
45+
run: nohup ollama serve &
46+
- name: Run Tests
47+
run: uv run -m pytest -v test
48+
- name: Send failure message tests
49+
if: failure() # This step will only run if a previous step failed
50+
run: echo "Tests failed. Please verify that tests are working locally."
51+

.github/workflows/run_llm_tests.yaml

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)