-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1.01 KB
/
testprimitives.yml
File metadata and controls
41 lines (34 loc) · 1.01 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
name: Primitives
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
primitives:
name: ${{ matrix.primitive }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
primitive: [sampling, tools, resources, prompts]
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
run: |
pip install uv
- name: Install dependencies
run: |
# Install project with dev and optional extras similar to unit tests environment
uv pip install --system .[dev,anthropic,openai,search,e2b]
- name: Lint with ruff
run: |
ruff check .
- name: Run integration tests for ${{ matrix.primitive }} primitive
run: |
pytest tests/integration/primitives/test_${{ matrix.primitive }}.py