Skip to content

Commit 4534d9e

Browse files
committed
build: support uv.lock
1 parent 88c0ef0 commit 4534d9e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

vars/runJenkinsPipeline.groovy

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -427,9 +427,8 @@ def call(){
427427
try{
428428
sh( label: 'Running Tox',
429429
script: """python3 -m venv venv && venv/bin/pip install uv
430-
. ./venv/bin/activate
431-
uv python install cpython-${version}
432-
uvx -p ${version} --with tox-uv tox run -e ${toxEnv}
430+
./venv/bin/uv python install cpython-${version}
431+
./venv/bin/uv run --frozen --only-group tox --with tox-uv tox run -e ${toxEnv} --runner uv-venv-lock-runner
433432
"""
434433
)
435434
} catch(e) {
@@ -575,7 +574,7 @@ def call(){
575574
trap "rm -rf venv" EXIT
576575
venv/bin/pip install --disable-pip-version-check uv
577576
trap "rm -rf venv && rm -rf .tox" EXIT
578-
venv/bin/uvx --with tox-uv tox --installpkg ${installpkg} -e py${PYTHON_VERSION.replace('.', '')}
577+
venv/bin/uv run --frozen --no-dev --only-group tox --with tox-uv tox --installpkg ${installpkg} -e py${PYTHON_VERSION.replace('.', '')}
579578
"""
580579
)
581580
}

0 commit comments

Comments
 (0)