12
12
CI : true
13
13
COLUMNS : 120
14
14
UV_PYTHON : 3.12
15
+ UV_FROZEN : ' 1'
15
16
16
17
permissions :
17
18
contents : read
27
28
enable-cache : true
28
29
29
30
- name : Install dependencies
30
- run : uv sync --frozen -- all-extras --all-packages --group lint
31
+ run : uv sync --all-extras --all-packages --group lint
31
32
32
33
-
uses :
pre-commit/[email protected]
33
34
with :
49
50
enable-cache : true
50
51
51
52
- name : Install dependencies
52
- run : uv sync --frozen -- no-dev --group lint
53
+ run : uv sync --no-dev --group lint
53
54
54
55
- run : make typecheck-mypy
55
56
@@ -62,13 +63,13 @@ jobs:
62
63
with :
63
64
enable-cache : true
64
65
65
- - run : uv sync --frozen -- group docs
66
+ - run : uv sync --group docs
66
67
67
68
# always build docs to check it works without insiders packages
68
69
- run : make docs
69
70
70
71
- run : make docs-insiders
71
- if : github.event.pull_request.head.repo.full_name == github.repository
72
+ if : github.event.pull_request.head.repo.full_name == github.repository || github.ref == 'refs/heads/main'
72
73
env :
73
74
PPPR_TOKEN : ${{ secrets.PPPR_TOKEN }}
74
75
91
92
92
93
- run : >
93
94
uv run
94
- --frozen
95
95
--package pydantic-ai-slim
96
96
--extra openai
97
97
--extra vertexai
@@ -129,19 +129,19 @@ jobs:
129
129
- run : mkdir coverage
130
130
131
131
# run tests with just `pydantic-ai-slim` dependencies
132
- - run : uv run --frozen -- package pydantic-ai-slim coverage run -m pytest
132
+ - run : uv run --package pydantic-ai-slim coverage run -m pytest
133
133
env :
134
134
COVERAGE_FILE : coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }}-slim
135
135
136
- - run : uv run --frozen coverage run -m pytest
136
+ - run : uv run coverage run -m pytest
137
137
env :
138
138
COVERAGE_FILE : coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }}-standard
139
139
140
- - run : uv run --frozen -- all-extras coverage run -m pytest
140
+ - run : uv run --all-extras coverage run -m pytest
141
141
env :
142
142
COVERAGE_FILE : coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }}-all-extras
143
143
144
- - run : uv run --frozen -- all-extras python tests/import_examples.py
144
+ - run : uv run --all-extras python tests/import_examples.py
145
145
146
146
- name : store coverage files
147
147
uses : actions/upload-artifact@v4
@@ -169,10 +169,10 @@ jobs:
169
169
with :
170
170
enable-cache : true
171
171
172
- - run : uv sync --frozen -- package pydantic-ai-slim --only-dev
173
- - run : uv run --frozen coverage combine coverage
172
+ - run : uv sync --package pydantic-ai-slim --only-dev
173
+ - run : uv run coverage combine coverage
174
174
175
- - run : uv run --frozen coverage html --show-contexts --title "PydanticAI coverage for ${{ github.sha }}"
175
+ - run : uv run coverage html --show-contexts --title "PydanticAI coverage for ${{ github.sha }}"
176
176
177
177
- name : Store coverage html
178
178
uses : actions/upload-artifact@v4
@@ -181,18 +181,18 @@ jobs:
181
181
path : htmlcov
182
182
include-hidden-files : true
183
183
184
- - run : uv run --frozen coverage xml
184
+ - run : uv run coverage xml
185
185
186
- - run : uv run --frozen diff-cover coverage.xml --html-report index.html
186
+ - run : uv run diff-cover coverage.xml --html-report index.html
187
187
188
188
- name : Store diff coverage html
189
189
uses : actions/upload-artifact@v4
190
190
with :
191
191
name : diff-coverage-html
192
192
path : index.html
193
193
194
- - run : uv run --frozen coverage report --fail-under 95
195
- - run : uv run --frozen diff-cover coverage.xml --fail-under 95
194
+ - run : uv run coverage report --fail-under 95
195
+ - run : uv run diff-cover coverage.xml --fail-under 95
196
196
197
197
# https://github.com/marketplace/actions/alls-green#why used for branch protection checks
198
198
check :
0 commit comments