-
Notifications
You must be signed in to change notification settings - Fork 3
90 lines (70 loc) · 2.18 KB
/
Copy pathtest.yml
File metadata and controls
90 lines (70 loc) · 2.18 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v7
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: |
uv venv
uv pip install -e ".[dev]"
- name: Check Formatting (make check-formatted)
run: |
source .venv/bin/activate
make check-formatted
- name: Check Code (make check)
run: |
source .venv/bin/activate
make check
- name: Run Tests (make tests)
run: |
source .venv/bin/activate
make tests
pydantic-ai-compatibility:
runs-on: ubuntu-latest
strategy:
matrix:
pydantic-ai-version: ["2.0.0", "2.1.0", "2.2.0", "2.3.0", "2.4.0"]
steps:
- uses: actions/checkout@v7
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- name: Set up Python 3.11
run: uv python install 3.11
- name: Test Pydantic AI ${{ matrix.pydantic-ai-version }}
run: |
uv run --extra dev --with "pydantic-ai-slim==${{ matrix.pydantic-ai-version }}" \
pytest tests/pydantic tests/test_acpkit_cli.py tests/test_native_pydantic_agent.py -q
- name: Type check Pydantic AI ${{ matrix.pydantic-ai-version }}
run: |
uv run --extra dev --with "pydantic-ai-slim==${{ matrix.pydantic-ai-version }}" \
ty check packages/adapters/pydantic-acp/src tests/pydantic examples/pydantic \
tests/test_acpkit_cli.py tests/test_native_pydantic_agent.py
langchain-stack-compatibility:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- name: Set up Python 3.11
run: uv python install 3.11
- name: Test and type check the supported LangChain stack
run: make check-langchain-stack