Skip to content

Commit 03de4ae

Browse files
fix: disable cache for lowest-direct resolution tests
The CI was failing for lowest-direct tests due to cache corruption where packages (specifically anyio) were installed with mixed files from different versions. This occurred because the cache was shared between "highest" tests (which use the lockfile) and "lowest-direct" tests (which resolve to lowest compatible versions). Initial attempt to use --refresh-package anyio did not resolve the issue, indicating the cache corruption is at the wheel/file level rather than just metadata. This fix disables caching entirely for lowest-direct tests while keeping it enabled for highest tests. This ensures lowest-direct tests perform clean package resolution without cache interference, which is the correct behavior for validating minimum dependencies. Github-Issue: #1325
1 parent 7f67ada commit 03de4ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/shared.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
python-version: ["3.10", "3.11", "3.12", "3.13"]
4040
dep-resolution:
4141
- name: lowest-direct
42-
install-flags: "--resolution lowest-direct --refresh-package anyio"
42+
install-flags: "--resolution lowest-direct"
4343
- name: highest
4444
install-flags: "--frozen"
4545
os: [ubuntu-latest, windows-latest]
@@ -50,7 +50,7 @@ jobs:
5050
- name: Install uv
5151
uses: astral-sh/setup-uv@v3
5252
with:
53-
enable-cache: true
53+
enable-cache: ${{ matrix.dep-resolution.name != 'lowest-direct' }}
5454
version: 0.9.5
5555

5656
- name: Install the project

0 commit comments

Comments
 (0)