Skip to content

Commit b6c297b

Browse files
committed
ci: Running Tox env on windows with single script
1 parent fca4298 commit b6c297b

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

vars/runJenkinsPipeline.groovy

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -571,14 +571,12 @@ def call(){
571571
docker.image('python').inside('--mount source=python-tmp-speedwagon,target=C:\\Users\\ContainerUser\\Documents --mount source=msvc-runtime,target=$VC_RUNTIME_INSTALLER_LOCATION'){
572572
checkout scm
573573
try{
574-
bat(label: 'Install uv',
575-
script: 'python -m venv venv && venv\\Scripts\\pip install --disable-pip-version-check uv'
576-
)
577574
retry(3){
578575
bat(label: 'Running Tox',
579-
script: """call venv\\Scripts\\activate.bat
580-
uv python install cpython-${version}
581-
uvx -p ${version} --with tox-uv tox run -e ${toxEnv}
576+
script: """python -m venv venv && venv\\Scripts\\pip install --disable-pip-version-check uv
577+
venv\\Scripts\\uv python install cpython-${version}
578+
venv\\Scripts\\uvx -p ${version} --with tox-uv tox run -e ${toxEnv}
579+
rmdir /S /Q venv
582580
"""
583581
)
584582
}

0 commit comments

Comments
 (0)