Skip to content

Commit

Permalink
Merge pull request #494 from UIUCLibrary/dev
Browse files Browse the repository at this point in the history
CI: Jenkinsfile - use a valid test env when testing in tox on linux
  • Loading branch information
henryborchers authored Dec 7, 2023
2 parents dea13a4 + cc830d5 commit fe56d18
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,27 @@ def testPythonPackages(){
if(params.INCLUDE_LINUX_ARM == true){
architectures.add('arm')
}
// As of 12/7/2023 there are no prebuilt binary wheel on ARM64 for
// Python versions prior to 3.11 so there is no reason to run
// tox tests that have a GUI.
def linuxToxEnvironments = [
"3.8": [
"x86_64": "py38-PySide6",
"arm": "py38"
],
"3.9": [
"x86_64": "py39-PySide6",
"arm": "py39"
],
"3.10": [
"x86_64": "py310-PySide6",
"arm": "py310"
],
"3.11": [
"x86_64": "py311-PySide6",
"arm": "py311-PySide6"
],
]
architectures.each{ processorArchitecture ->
linuxTests["Linux-${processorArchitecture} - Python ${pythonVersion}: sdist"] = {
packages.testPkg(
Expand All @@ -469,7 +490,7 @@ def testPythonPackages(){
findFiles(glob: 'dist/*.tar.gz').each{
sh(
label: 'Running Tox',
script: "tox --installpkg ${it.path} --workdir /tmp/tox -e py${pythonVersion.replace('.', '')}-PySide6"
script: "tox --installpkg ${it.path} --workdir /tmp/tox -e ${linuxToxEnvironments[pythonVersion][processorArchitecture]}"
)
}
},
Expand Down Expand Up @@ -506,7 +527,7 @@ def testPythonPackages(){
findFiles(glob: 'dist/*.whl').each{
sh(
label: 'Running Tox',
script: "tox --installpkg ${it.path} --workdir /tmp/tox -e py${pythonVersion.replace('.', '')}-PySide6"
script: "tox --installpkg ${it.path} --workdir /tmp/tox -e ${linuxToxEnvironments[pythonVersion][processorArchitecture]}"
)
}
},
Expand Down

0 comments on commit fe56d18

Please sign in to comment.