Skip to content

Commit 7f67ada

Browse files
fix: refresh anyio package in lowest-direct resolution tests
The CI was failing for lowest-direct tests due to cache corruption where anyio 4.5.0 was being installed with mixed files from anyio 4.10.0. This occurred because the cache was shared between the "highest" tests (which install anyio 4.10.0 from the lockfile) and "lowest-direct" tests (which resolve to anyio 4.5.0). The symptom was that anyio's _backends/_asyncio.py tried to import RunFinishedError (which only exists in anyio 4.11+), but the _exceptions.py file was from anyio 4.5.0 (which doesn't have it), causing ImportError. This fix adds --refresh-package anyio to lowest-direct tests, forcing anyio to be revalidated from PyPI while keeping the cache enabled for other packages. Github-Issue: #1325
1 parent 63363bf commit 7f67ada

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/shared.yml

Lines changed: 1 addition & 1 deletion
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"
42+
install-flags: "--resolution lowest-direct --refresh-package anyio"
4343
- name: highest
4444
install-flags: "--frozen"
4545
os: [ubuntu-latest, windows-latest]

0 commit comments

Comments
 (0)