Skip to content

Commit feb95e1

Browse files
fix: remove --frozen flag from uv run for lowest-direct resolution
The --frozen flag should only be used with the highest resolution strategy (which uses the lockfile). The lowest-direct resolution strategy needs to resolve dependencies dynamically, so it cannot use --frozen. This change adds a run-flags field to the matrix to conditionally apply --frozen only to the highest resolution strategy, allowing lowest-direct tests to run without the incompatible --frozen flag. Github-Issue: #1325
1 parent 63363bf commit feb95e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/shared.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ jobs:
4040
dep-resolution:
4141
- name: lowest-direct
4242
install-flags: "--resolution lowest-direct"
43+
run-flags: ""
4344
- name: highest
4445
install-flags: "--frozen"
46+
run-flags: "--frozen"
4547
os: [ubuntu-latest, windows-latest]
4648

4749
steps:
@@ -57,7 +59,7 @@ jobs:
5759
run: uv sync ${{ matrix.dep-resolution.install-flags }} --all-extras --python ${{ matrix.python-version }}
5860

5961
- name: Run pytest
60-
run: uv run --frozen --no-sync pytest
62+
run: uv run ${{ matrix.dep-resolution.run-flags }} --no-sync pytest
6163

6264
readme-snippets:
6365
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)