diff --git a/Jenkinsfile b/Jenkinsfile index b5841960f..448af9cba 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,6 +4,7 @@ library identifier: 'JenkinsPythonHelperLibrary@2024.1.2', retriever: modernSCM( ]) def getVersion(){ node(){ + checkout scm def props = readTOML( file: 'pyproject.toml')['project'] return props.version } @@ -913,19 +914,16 @@ pipeline { ) } else { installMSVCRuntime('c:\\msvc_runtime\\') - bat( - label: 'Install uv', - script: '''python -m venv venv - call venv\\Scripts\\activate.bat - pip install uv - ''' - ) script{ retry(3){ bat( label: 'Testing with tox', - script: '''call venv\\Scripts\\activate.bat + script: '''python -m venv venv + call venv\\Scripts\\activate.bat + pip install uv uvx --with tox-uv tox + rmdir /S /Q .tox + rmdir /S /Q venv ''' ) }