Skip to content

Commit ff611d0

Browse files
committed
set UV_FROZEN globally in CI
1 parent 1bc208e commit ff611d0

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ env:
1212
CI: true
1313
COLUMNS: 120
1414
UV_PYTHON: 3.12
15+
UV_FROZEN: '1'
1516

1617
permissions:
1718
contents: read
@@ -27,7 +28,7 @@ jobs:
2728
enable-cache: true
2829

2930
- name: Install dependencies
30-
run: uv sync --frozen --all-extras --all-packages --group lint
31+
run: uv sync --all-extras --all-packages --group lint
3132

3233
- uses: pre-commit/[email protected]
3334
with:
@@ -49,7 +50,7 @@ jobs:
4950
enable-cache: true
5051

5152
- name: Install dependencies
52-
run: uv sync --frozen --no-dev --group lint
53+
run: uv sync --no-dev --group lint
5354

5455
- run: make typecheck-mypy
5556

@@ -62,13 +63,13 @@ jobs:
6263
with:
6364
enable-cache: true
6465

65-
- run: uv sync --frozen --group docs
66+
- run: uv sync --group docs
6667

6768
# always build docs to check it works without insiders packages
6869
- run: make docs
6970

7071
- 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'
7273
env:
7374
PPPR_TOKEN: ${{ secrets.PPPR_TOKEN }}
7475

@@ -91,7 +92,6 @@ jobs:
9192

9293
- run: >
9394
uv run
94-
--frozen
9595
--package pydantic-ai-slim
9696
--extra openai
9797
--extra vertexai
@@ -129,19 +129,19 @@ jobs:
129129
- run: mkdir coverage
130130

131131
# 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
133133
env:
134134
COVERAGE_FILE: coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }}-slim
135135

136-
- run: uv run --frozen coverage run -m pytest
136+
- run: uv run coverage run -m pytest
137137
env:
138138
COVERAGE_FILE: coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }}-standard
139139

140-
- run: uv run --frozen --all-extras coverage run -m pytest
140+
- run: uv run --all-extras coverage run -m pytest
141141
env:
142142
COVERAGE_FILE: coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }}-all-extras
143143

144-
- run: uv run --frozen --all-extras python tests/import_examples.py
144+
- run: uv run --all-extras python tests/import_examples.py
145145

146146
- name: store coverage files
147147
uses: actions/upload-artifact@v4
@@ -169,10 +169,10 @@ jobs:
169169
with:
170170
enable-cache: true
171171

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
174174

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 }}"
176176

177177
- name: Store coverage html
178178
uses: actions/upload-artifact@v4
@@ -181,18 +181,18 @@ jobs:
181181
path: htmlcov
182182
include-hidden-files: true
183183

184-
- run: uv run --frozen coverage xml
184+
- run: uv run coverage xml
185185

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
187187

188188
- name: Store diff coverage html
189189
uses: actions/upload-artifact@v4
190190
with:
191191
name: diff-coverage-html
192192
path: index.html
193193

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
196196

197197
# https://github.com/marketplace/actions/alls-green#why used for branch protection checks
198198
check:

0 commit comments

Comments
 (0)