Skip to content

Commit 56cc7f6

Browse files
committed
add CI job
1 parent d144317 commit 56cc7f6

File tree

4 files changed

+90
-4
lines changed

4 files changed

+90
-4
lines changed

.github/workflows/eval.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Eval
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
workflow_dispatch:
11+
12+
concurrency:
13+
group: eval-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
run_eval:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v3
22+
23+
- name: Set up Python + Poetry
24+
uses: "./.github/actions/poetry_setup"
25+
with:
26+
python-version: "3.11"
27+
poetry-version: "1.7.1"
28+
cache-key: lint
29+
30+
- name: Install dependencies
31+
run: poetry install --with dev
32+
33+
- name: Evaluate
34+
env:
35+
LANGSMITH_API_KEY: ${{ secrets.LANGSMITH_API_KEY }}
36+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
37+
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
38+
WEAVIATE_URL: ${{ secrets.WEAVIATE_URL }}
39+
WEAVIATE_API_KEY: ${{ secrets.WEAVIATE_API_KEY }}
40+
run: poetry run pytest backend/tests/evals

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
run: poetry lock --check
4545

4646
- name: Install dependencies
47-
run: poetry install --with lint
47+
run: poetry install --with dev
4848

4949
- name: Get .mypy_cache to speed up mypy
5050
uses: actions/cache@v3

poetry.lock

Lines changed: 47 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ voyageai = "^0.1.4"
2525
pillow = "^10.2.0"
2626
psycopg2-binary = "^2.9.9"
2727

28-
29-
[tool.poetry.group.lint.dependencies]
28+
[tool.poetry.group.dev.dependencies]
29+
pytest = "^7.3.0"
3030
ruff = "^0.2.2"
3131

3232
[build-system]

0 commit comments

Comments
 (0)