tox: try using uv for CI, should result in speedup
see https://github.com/karlicoss/HPI/issues/391
This commit is contained in:
parent
8ed9e1947e
commit
bf8af6c598
3 changed files with 17 additions and 9 deletions
13
.ci/run
13
.ci/run
|
@ -11,6 +11,8 @@ if ! command -v sudo; then
|
|||
}
|
||||
fi
|
||||
|
||||
# --parallel-live to show outputs while it's running
|
||||
tox_cmd='run-parallel --parallel-live'
|
||||
if [ -n "${CI-}" ]; then
|
||||
# install OS specific stuff here
|
||||
case "$OSTYPE" in
|
||||
|
@ -20,7 +22,8 @@ if [ -n "${CI-}" ]; then
|
|||
;;
|
||||
cygwin* | msys* | win*)
|
||||
# windows
|
||||
:
|
||||
# ugh. parallel stuff seems super flaky under windows, some random failures, "file used by other process" and crap like that
|
||||
tox_cmd='run'
|
||||
;;
|
||||
*)
|
||||
# must be linux?
|
||||
|
@ -37,5 +40,9 @@ if ! command -v python3 &> /dev/null; then
|
|||
PY_BIN="python"
|
||||
fi
|
||||
|
||||
"$PY_BIN" -m pip install --user tox
|
||||
"$PY_BIN" -m tox --parallel --parallel-live "$@"
|
||||
|
||||
# TODO hmm for some reason installing uv with pip and then running
|
||||
# "$PY_BIN" -m uv tool fails with missing setuptools error??
|
||||
# just uvx directly works, but it's not present in PATH...
|
||||
"$PY_BIN" -m pip install --user pipx
|
||||
"$PY_BIN" -m pipx run uv tool run --with=tox-uv tox $tox_cmd "$@"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue