Skip to content

Commit 671dc3a

Browse files
committed
Python: Use v3.11 on CI. Python 3.8 has problems with new-style ns-pkgs
1 parent 0e67069 commit 671dc3a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Jenkinsfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pipeline {
1414
steps {
1515
checkout scm
1616
sh 'rm -rf env'
17-
sh '/usr/bin/python3 -m venv env'
17+
sh '/usr/bin/python3.11 -m venv env'
1818
sh 'env/bin/python -m pip install -U mypy flake8'
1919
sh 'find tests -name "*.py" | xargs env/bin/mypy --ignore-missing-imports'
2020
sh 'find src -name "*.py" | xargs env/bin/mypy --ignore-missing-imports'
@@ -27,7 +27,7 @@ pipeline {
2727
checkout scm
2828
sh '''
2929
rm -rf env
30-
/usr/bin/python3 -m venv env
30+
/usr/bin/python3.11 -m venv env
3131
source env/bin/activate
3232
python -m pip install -U -e .
3333
@@ -41,7 +41,7 @@ pipeline {
4141
checkout scm
4242
sh '''
4343
rm -rf env
44-
/usr/bin/python3 -m venv env
44+
/usr/bin/python3.11 -m venv env
4545
source env/bin/activate
4646
python -m pip install -U -e .
4747
@@ -55,7 +55,7 @@ pipeline {
5555
checkout scm
5656
sh '''
5757
rm -rf env
58-
/usr/bin/python3 -m venv env
58+
/usr/bin/python3.11 -m venv env
5959
source env/bin/activate
6060
python -m pip install -U -e .
6161
@@ -69,7 +69,7 @@ pipeline {
6969
checkout scm
7070
sh '''
7171
rm -rf env
72-
/usr/bin/python3 -m venv env
72+
/usr/bin/python3.11 -m venv env
7373
source env/bin/activate
7474
python -m pip install -U -e .
7575
@@ -83,7 +83,7 @@ pipeline {
8383
checkout scm
8484
sh '''
8585
rm -rf env
86-
/usr/bin/python3 -m venv env
86+
/usr/bin/python3.11 -m venv env
8787
source env/bin/activate
8888
python -m pip install -U -e .
8989
@@ -97,7 +97,7 @@ pipeline {
9797
checkout scm
9898
sh '''
9999
rm -rf env
100-
/usr/bin/python3 -m venv env
100+
/usr/bin/python3.11 -m venv env
101101
source env/bin/activate
102102
python -m pip install -U -e .
103103
@@ -112,7 +112,7 @@ pipeline {
112112
checkout scm
113113
sh '''
114114
rm -rf env
115-
/usr/bin/python3 -m venv env
115+
/usr/bin/python3.11 -m venv env
116116
source env/bin/activate
117117
python -m pip install -U -e .
118118

0 commit comments

Comments
 (0)