-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (28 loc) · 861 Bytes
/
Copy pathci.yml
File metadata and controls
30 lines (28 loc) · 861 Bytes
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
name: CI
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: "3.12"
cache: pip
# Pinned so a new ruff release cannot turn the build red on its own.
# Keep in sync with the `dev` extra in pyproject.toml.
- run: pip install "ruff==0.15.16"
- run: ruff check .
- run: ruff format --check .
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: "3.12"
cache: pip
- run: pip install -e ".[dev]"
# The benchmark's optional judges (ragas/deepeval/groq) are not installed;
# those tests skip themselves and the rest of the suite runs.
- run: pytest -q