Skip to content

Commit

Permalink
ci: cache only uv-python-install-dir
Browse files Browse the repository at this point in the history
  • Loading branch information
henryborchers committed Dec 11, 2024
1 parent 07469c2 commit ff4f804
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -1081,14 +1081,15 @@ pipeline {
image = docker.build(UUID.randomUUID().toString(), '-f ci/docker/windows/tox/Dockerfile --build-arg PIP_EXTRA_INDEX_URL --build-arg PIP_INDEX_URL --build-arg CHOCOLATEY_SOURCE --build-arg chocolateyVersion .')
}
try{
image.inside('--mount source=python-tmp-py3exiv2bind,target=C:\\Users\\ContainerUser\\Documents'){
image.inside('--mount source=python-uv-python-install-dir-py3exiv2bind,target=C:\\Users\\ContainerUser\\Documents\\uvpython'){
try{
retry(3){
bat(label: 'Running Tox',
script: """py -m venv venv
venv\\Scripts\\pip install --disable-pip-version-check uv
venv\\Scripts\\uv python install cpython-${version}
venv\\Scripts\\uvx -p ${version} --with-requirements requirements-dev.txt --with tox-uv tox run -e ${toxEnv} --workdir %WORKSPACE_TMP%\\.tox
venv\\Scripts\\uv python install --verbose cpython-${version}-windows
venv\\Scripts\\uv python list --only-installed
venv\\Scripts\\uvx --python cpython-${version}-windows --with-requirements requirements-dev.txt --with tox-uv tox run -e ${toxEnv} --workdir %WORKSPACE_TMP%\\.tox
rmdir /S /Q venv
"""
)
Expand Down Expand Up @@ -1285,7 +1286,7 @@ pipeline {
image = docker.build(UUID.randomUUID().toString(), '-f ci/docker/windows/tox/Dockerfile --build-arg PIP_EXTRA_INDEX_URL --build-arg PIP_INDEX_URL --build-arg CHOCOLATEY_SOURCE --build-arg chocolateyVersion .')
}
try{
image.inside('--mount source=python-tox-tmp-py3exiv2bind,target=C:\\Users\\ContainerUser\\Documents'){
image.inside('--mount source=python-uv-python-install-dir-py3exiv2bind,target=C:\\Users\\ContainerUser\\Documents\\uvpython'){
checkout scm
unstash 'sdist'
findFiles(glob: 'dist/*.tar.gz').each{
Expand Down

0 comments on commit ff4f804

Please sign in to comment.