Skip to content
Merged

dev #588

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py3{10-13}-{PySide6,cli}
envlist = py3{10-14}-{PySide6,cli},py314t-core
isolated_build = true

[tool:pytest]
Expand Down Expand Up @@ -40,14 +40,15 @@ commands=
labels =
lint
correctness
extras = QT
dependency_groups = type-checking
skip_install=True
setenv = MYPY_CACHE_DIR = {temp_dir}/.mypy_cache
commands = mypy {posargs: -p speedwagon}

[testenv:flake8]
description = check the code style
labels =
lint
style
dependency_groups = code-style
skip_install=True
Expand Down
43 changes: 28 additions & 15 deletions vars/runJenkinsPipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ def call(){
axes: [
[
name: 'PYTHON_VERSION',
values: ['3.10', '3.11', '3.12', '3.13']
values: ['3.10', '3.11', '3.12', '3.13', '3.14', '3.14t']
],
[
name: 'OS',
Expand Down Expand Up @@ -767,12 +767,17 @@ def call(){
'UV_CACHE_DIR=/tmp/uvcache',
"UV_CONFIG_FILE=${createUnixUvConfig()}"
]){
sh(
label: 'Testing with tox',
script: """uv python install cpython-${entry.PYTHON_VERSION}
uv run --only-group=tox-uv --isolated --frozen tox --installpkg ${findFiles(glob: entry.PACKAGE_TYPE == 'wheel' ? 'dist/*.whl' : 'dist/*.tar.gz')[0].path} -e py${entry.PYTHON_VERSION.replace('.', '')}
"""
)
sh "uv python install cpython-${entry.PYTHON_VERSION}"
def attempt = 0
retry(2){
attempt += 1
withEnv([(attempt == 1) ? 'UV_OFFLINE=1' : 'UV_OFFLINE=0']){
sh(
label: "Testing with tox: ${(attempt == 1) ? 'Offline' : 'Online'}",
script: "uv run --only-group=tox-uv --isolated --frozen tox --installpkg ${findFiles(glob: entry.PACKAGE_TYPE == 'wheel' ? 'dist/*.whl' : 'dist/*.tar.gz')[0].path} -e py${entry.PYTHON_VERSION.replace('.', '')}"
)
}
}
}
} else {
withEnv([
Expand All @@ -785,14 +790,22 @@ def call(){
"UV_CONFIG_FILE=${createWindowUVConfig()}"
]){
installMSVCRuntime('c:\\msvc_runtime\\')
bat(
label: 'Testing with tox',
script: """python -m venv venv
.\\venv\\Scripts\\pip install --disable-pip-version-check uv
.\\venv\\Scripts\\uv python install cpython-${entry.PYTHON_VERSION}
.\\venv\\Scripts\\uv run --frozen --only-group=tox-uv --isolated tox --installpkg ${findFiles(glob: entry.PACKAGE_TYPE == 'wheel' ? 'dist/*.whl' : 'dist/*.tar.gz')[0].path} -e py${entry.PYTHON_VERSION.replace('.', '')}
"""
)
bat """python -m venv venv
.\\venv\\Scripts\\pip install --disable-pip-version-check uv
.\\venv\\Scripts\\uv python install cpython-${entry.PYTHON_VERSION}
"""
def attempt = 0
retry(2){
attempt += 1
withEnv([(attempt == 1) ? 'UV_OFFLINE=1' : 'UV_OFFLINE=0']){
bat(
label: 'Testing with tox',
script: """
.\\venv\\Scripts\\uv run --frozen --only-group=tox-uv --isolated tox --installpkg ${findFiles(glob: entry.PACKAGE_TYPE == 'wheel' ? 'dist/*.whl' : 'dist/*.tar.gz')[0].path} -e py${entry.PYTHON_VERSION.replace('.', '')}
"""
)
}
}
}
}
}
Expand Down
Loading