-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (40 loc) · 1.3 KB
/
Copy pathci.yml
File metadata and controls
49 lines (40 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: ci
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
test:
name: test (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: pip
- name: Install
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
- name: Lint
run: python -m ruff check .
# Tests use the deterministic hashing embedder, so no model download is needed.
- name: Tests
run: python -m pytest -q
# Proves the whole pipeline runs with no LLM and no embedding model at all.
# --embedder is passed explicitly on every step: `auto` would pick whatever the
# runner happens to have, making the result machine-dependent.
- name: End-to-end without any model
run: |
python -m customllm.cli ingest data --embedder hashing
python -m customllm.cli info
python -m customllm.cli ask "how many days of annual leave" --embedder hashing --no-llm
python -m customllm.cli search "annual leave" --embedder hashing