@@ -17,6 +17,7 @@ defaults:
1717 shell : bash
1818
1919env :
20+ UV_LOCKED : 1
2021 CARGO_INCREMENTAL : 0
2122 CARGO_NET_RETRY : 10
2223 CARGO_PROFILE_DEV_LTO : " false"
@@ -404,7 +405,10 @@ jobs:
404405 # This step is just to get nice GitHub annotations on the PR diff in the files-changed tab.
405406 run : cargo test -p ty_python_semantic --test mdtest || true
406407 - name : " Run tests"
407- run : uv run --only-dev cargo insta test --all-features --unreferenced reject --test-runner nextest --disable-nextest-doctest
408+ env :
409+ # Tests create disposable uv projects that must be resolved without a lockfile.
410+ UV_LOCKED : 0
411+ run : uv run --locked --only-dev cargo insta test --all-features --unreferenced reject --test-runner nextest --disable-nextest-doctest
408412 - name : " Run doctests"
409413 run : cargo test --doc --all-features
410414 - name : Dogfood ty on py-fuzzer
@@ -460,7 +464,10 @@ jobs:
460464 version : " 0.12.9"
461465 enable-cache : " true"
462466 - name : " Run tests"
463- run : uv run --only-dev cargo nextest run --cargo-profile profiling --all-features
467+ env :
468+ # Tests create disposable uv projects that must be resolved without a lockfile.
469+ UV_LOCKED : 0
470+ run : uv run --locked --only-dev cargo nextest run --cargo-profile profiling --all-features
464471 - name : " Run doctests"
465472 run : cargo test --doc --profile profiling --all-features
466473
@@ -495,8 +502,11 @@ jobs:
495502 version : " 0.12.9"
496503 enable-cache : " true"
497504 - name : " Run tests"
505+ env :
506+ # Tests create disposable uv projects that must be resolved without a lockfile.
507+ UV_LOCKED : 0
498508 run : |
499- uv run --only-dev cargo nextest run --all-features --profile ci
509+ uv run --locked -- only-dev cargo nextest run --all-features --profile ci
500510 cargo test --all-features --doc
501511
502512 cargo-test-wasm :
@@ -1379,9 +1389,11 @@ jobs:
13791389 # appear to provide much useful insight for our walltime benchmarks right now
13801390 # (see https://github.com/astral-sh/ruff/pull/20419)
13811391 CODSPEED_PERF_ENABLED : false
1392+ # Benchmarks manage any disposable uv environments they create.
1393+ UV_LOCKED : 0
13821394 with :
13831395 mode : walltime
1384- run : uv run --only-dev cargo codspeed run --bench "${{ matrix.benchmark.target }}" -m walltime "${{ matrix.benchmark.filter }}"
1396+ run : uv run --locked -- only-dev cargo codspeed run --bench "${{ matrix.benchmark.target }}" -m walltime "${{ matrix.benchmark.filter }}"
13851397
13861398 required-checks-passed :
13871399 name : " all required checks passed"
0 commit comments