Skip to content

Commit 67ef2f6

Browse files
merge main
2 parents abe3472 + 873bdc5 commit 67ef2f6

File tree

160 files changed

+1539
-779
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+1539
-779
lines changed

.github/workflows/run_tests.yml

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,49 @@ jobs:
8282
with:
8383
args: check --fix-only
8484
- name: Run tests with pytest
85-
run: uv run -p .venv pytest tests/
85+
run: uv run -p .venv pytest -vv tests/
8686
- name: Install optional dependencies
8787
run: uv sync -p .venv --extra dev --extra test_extras
8888
- name: Run extra tests
8989
run: uv run -p .venv pytest tests/ -m extra --extra
90+
91+
llm_call_test:
92+
name: Run Tests with Real LM
93+
runs-on: ubuntu-latest
94+
services:
95+
ollama:
96+
image: ollama/ollama:latest
97+
ports:
98+
- 11434:11434
99+
steps:
100+
- uses: actions/checkout@v4
101+
- uses: actions/setup-python@v5
102+
with:
103+
python-version: 3.11
104+
- name: Install uv with caching
105+
uses: astral-sh/setup-uv@v5
106+
with:
107+
enable-cache: true
108+
cache-dependency-glob: |
109+
**/pyproject.toml
110+
**/uv.lock
111+
- name: Create and activate virtual environment
112+
run: |
113+
uv venv .venv
114+
echo "${{ github.workspace }}/.venv/bin" >> $GITHUB_PATH
115+
- name: Install dependencies
116+
run: |
117+
uv sync --dev -p .venv --extra dev
118+
uv pip list
119+
- name: Pull LLM
120+
run: |
121+
timeout 60 bash -c 'until curl -f http://localhost:11434/api/version; do sleep 2; done'
122+
curl -X POST http://localhost:11434/api/pull \
123+
-H "Content-Type: application/json" \
124+
-d '{"name": "llama3.2:3b"}'
125+
echo "LM_FOR_TEST=ollama/llama3.2:3b" >> $GITHUB_ENV
126+
- name: Run tests
127+
run: uv run -p .venv pytest -m llm_call --llm_call -vv --durations=5 tests/
90128

91129
build_package:
92130
name: Build Package

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion

docs/docs/api/adapters/Adapter.md

Lines changed: 1 addition & 0 deletions

docs/docs/api/adapters/ChatAdapter.md

Lines changed: 1 addition & 0 deletions

docs/docs/api/adapters/JSONAdapter.md

Lines changed: 1 addition & 0 deletions

docs/docs/api/adapters/TwoStepAdapter.md

Lines changed: 1 addition & 0 deletions

docs/docs/api/evaluation/CompleteAndGrounded.md

Lines changed: 1 addition & 0 deletions

docs/docs/api/evaluation/Evaluate.md

Lines changed: 1 addition & 0 deletions

docs/docs/api/evaluation/SemanticF1.md

Lines changed: 1 addition & 0 deletions

docs/docs/api/evaluation/answer_exact_match.md

Lines changed: 1 addition & 0 deletions

0 commit comments

Comments
 (0)