File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,10 @@ def handle_test_env() -> None:
153153 # Start compiling the args we'll pass to uv.
154154 UV_ARGS = ["--extra test --no-group dev" ]
155155
156+ # If USE_ACTIVE_VENV is set, add --active to UV_ARGS so run-tests.sh uses the active venv.
157+ if is_set ("USE_ACTIVE_VENV" ):
158+ UV_ARGS .append ("--active" )
159+
156160 test_title = test_name
157161 if sub_test_name :
158162 test_title += f" { sub_test_name } "
Original file line number Diff line number Diff line change @@ -57,7 +57,9 @@ lint-manual *args="": && resync
5757
5858[group (' test' )]
5959test * args = " -v --durations=5 --maxfail=10": && resync
60- uv run --extra test python -m pytest {{ args}}
60+ #!/usr/bin/env bash
61+ set -euo pipefail
62+ uv run ${USE_ACTIVE_VENV:+ --active} --extra test python -m pytest {{ args}}
6163
6264[group (' test' )]
6365test-numpy * args = " ": && resync
You can’t perform that action at this time.
0 commit comments