Skip to content

Commit cc9e435

Browse files
ampagentkvlonge
andcommitted
ci: pin uv so release lockfile refreshes keep the committed lock format
The latest uv rewrites uv.lock with a newer revision, which the release metadata check rejects as a change beyond the version substitution. Amp-Thread-ID: https://ampcode.com/threads/T-01a18b8a-340f-717d-9ca7-6dcf564a065a Co-authored-by: Kevin Longe <kvlonge@gmail.com>
1 parent bf9b7a9 commit cc9e435

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

‎.github/workflows/publish.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ jobs:
135135
with:
136136
toolchain: 1.95.0
137137
- uses: astral-sh/setup-uv@v6
138+
with:
139+
version: "0.12.9"
138140
# The sqlclean package is pure Python, so one wheel serves every platform.
139141
- name: Build Python package sdist and wheel
140142
run: uv build --sdist --wheel --out-dir dist

‎.github/workflows/release-please.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ jobs:
128128
129129
- uses: astral-sh/setup-uv@v6
130130
if: steps.release.outputs.prs_created == 'true'
131+
with:
132+
version: "0.12.9"
131133

132134
- uses: dtolnay/rust-toolchain@master
133135
if: steps.release.outputs.prs_created == 'true'

‎.github/workflows/verify.yml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ jobs:
4242
steps:
4343
- uses: actions/checkout@v4
4444
- uses: astral-sh/setup-uv@v6
45+
with:
46+
version: "0.12.9"
4547
- run: python3 -m scripts.check_docs_skill
4648
- run: uvx ruff@0.17.3 format --check .
4749
- run: uvx ruff@0.17.3 check .
@@ -59,6 +61,7 @@ jobs:
5961
- uses: Swatinem/rust-cache@v2
6062
- uses: astral-sh/setup-uv@v6
6163
with:
64+
version: "0.12.9"
6265
enable-cache: true
6366
- run: uv python install 3.12
6467
- run: uv sync --locked --all-groups
@@ -78,6 +81,7 @@ jobs:
7881
- uses: Swatinem/rust-cache@v2
7982
- uses: astral-sh/setup-uv@v6
8083
with:
84+
version: "0.12.9"
8185
enable-cache: true
8286
- run: uv python install 3.12
8387
- run: uv sync --locked --all-groups
@@ -108,6 +112,7 @@ jobs:
108112
- uses: Swatinem/rust-cache@v2
109113
- uses: astral-sh/setup-uv@v6
110114
with:
115+
version: "0.12.9"
111116
enable-cache: true
112117
- run: uv python install 3.12
113118
- run: uv sync --locked --all-groups
@@ -128,6 +133,8 @@ jobs:
128133
toolchain: 1.95.0
129134
- uses: Swatinem/rust-cache@v2
130135
- uses: astral-sh/setup-uv@v6
136+
with:
137+
version: "0.12.9"
131138
- run: uv python install 3.12
132139
- run: uv sync --locked --all-groups
133140
- run: uv run sqlclean --version
@@ -144,6 +151,8 @@ jobs:
144151
toolchain: 1.95.0
145152
- uses: Swatinem/rust-cache@v2
146153
- uses: astral-sh/setup-uv@v6
154+
with:
155+
version: "0.12.9"
147156
- run: uv python install 3.12
148157
- run: uv build --sdist --out-dir dist
149158
- run: uvx maturin sdist --out ../../dist

0 commit comments

Comments
 (0)