Skip to content

Commit 7bff4e7

Browse files
authored
Merge pull request #3259 from locustio/check-uv.lock-during-build
GH Actions: update uv version, ensure uv.lock doesn't contain anything not in pyproject.toml
2 parents b4138a4 + c1cde72 commit 7bff4e7

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/tests.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,17 @@ jobs:
4444

4545
- uses: astral-sh/setup-uv@v5
4646
with:
47-
version: "0.7.2"
47+
version: "0.9.7"
4848
enable-cache: true
49-
cache-dependency-glob: "uv.lock"
49+
cache-dependency-glob: |
50+
"pyproject.toml"
51+
"uv.lock"
5052
5153
- run: uv venv
5254

55+
# ensure uv.lock doesnt contain anything not in pyproject.toml
56+
- run: uv lock --check
57+
5358
- name: Install the project
5459
run: uv sync
5560

@@ -161,9 +166,11 @@ jobs:
161166

162167
- uses: astral-sh/setup-uv@v5
163168
with:
164-
version: "0.7.2"
169+
version: "0.9.7"
165170
enable-cache: true
166-
cache-dependency-glob: "uv.lock"
171+
cache-dependency-glob: |
172+
"pyproject.toml"
173+
"uv.lock"
167174
168175
- run: uv venv --python ${{ matrix.python }}
169176

0 commit comments

Comments
 (0)