1717 include :
1818 # first test on vanilla environments
1919 - name : py2.7
20- os : ubuntu-20 .04
20+ os : ubuntu-22 .04
2121 python-version : 2.7
2222 - name : py3.7
2323 os : ubuntu-22.04
4646 python-version : 2.6
4747 # then test with the different optional dependencies installed
4848 - name : py2.7 with m2crypto
49- os : ubuntu-20 .04
49+ os : ubuntu-22 .04
5050 python-version : 2.7
5151 opt-deps : ['m2crypto']
5252 - name : py3.7 with m2crypto
7070 python-version : ' 3.11'
7171 opt-deps : ['m2crypto']
7272 - name : py2.7 with pycrypto
73- os : ubuntu-20 .04
73+ os : ubuntu-22 .04
7474 python-version : 2.7
7575 opt-deps : ['pycrypto']
7676 - name : py3.10 with pycryptodome
8080 # it doesn't break pycrypto code
8181 opt-deps : ['pycryptodome']
8282 - name : py2.7 with gmpy
83- os : ubuntu-20 .04
83+ os : ubuntu-22 .04
8484 python-version : 2.7
8585 opt-deps : ['gmpy']
8686 - name : py3.7 with gmpy
@@ -101,7 +101,7 @@ jobs:
101101 python-version : ' 3.10'
102102 opt-deps : ['gmpy']
103103 - name : py2.7 with gmpy2
104- os : ubuntu-20 .04
104+ os : ubuntu-22 .04
105105 python-version : 2.7
106106 opt-deps : ['gmpy2']
107107 - name : py3.7 with gmpy2
@@ -133,7 +133,7 @@ jobs:
133133 python-version : ' 3.13'
134134 opt-deps : ['gmpy2']
135135 - name : py2.7 with brotli
136- os : ubuntu-20 .04
136+ os : ubuntu-22 .04
137137 python-version : 2.7
138138 # zstandard is available for py3.8 and above
139139 opt-deps : ['brotli']
@@ -188,7 +188,7 @@ jobs:
188188 opt-deps : ["kyber_py"]
189189 # finally test with multiple dependencies installed at the same time
190190 - name : py2.7 with m2crypto, pycrypto, gmpy, gmpy2, and brotli
191- os : ubuntu-20 .04
191+ os : ubuntu-22 .04
192192 python-version : 2.7
193193 opt-deps : ['m2crypto', 'pycrypto', 'gmpy', 'gmpy2', 'brotli']
194194 - name : py3.7 with m2crypto, gmpy, gmpy2, and brotli
@@ -275,15 +275,17 @@ jobs:
275275 uses : actions/setup-python@v2
276276 with :
277277 python-version : ${{ matrix.python-version }}
278- - name : Ensure python 2.7
278+ - name : Ensure working pip on python 2.7
279279 if : matrix.python-version == '2.7'
280280 run : |
281281 sudo apt-get update
282+ sudo add-apt-repository universe
282283 sudo apt-get install -y \
283- python2.7 python2.7-dev python-pip-whl
284+ python2.7 python2.7-dev
285+ curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
284286 sudo ln -sf python2.7 /usr/bin/python
285- export PYTHONPATH=`echo /usr/share/ python-wheels/ pip-*py2*.whl`
286- sudo --preserve-env=PYTHONPATH python -m pip install --upgrade pip setuptools wheel
287+ sudo python get- pip.py
288+ sudo pip install setuptools wheel
287289 sudo chown -R $USER /usr/local/lib/python2.7
288290 - name : Display Python version
289291 run : python -c "import sys; print(sys.version)"
@@ -312,7 +314,7 @@ jobs:
312314 pip install setuptools-28.8.0-py2.py3-none-any.whl wheel-0.30.0a0-py2.py3-none-any.whl
313315 - name : Install M2Crypto for python 2.7
314316 if : ${{ contains(matrix.opt-deps, 'm2crypto') && matrix.python-version == '2.7' }}
315- run : pip install M2Crypto==0.37.1
317+ run : pip install M2Crypto==0.38.0
316318 - name : Install M2Crypto for python
317319 if : ${{ contains(matrix.opt-deps, 'm2crypto') && matrix.python-version != '2.7' }}
318320 run : pip install --pre M2Crypto
@@ -445,7 +447,7 @@ jobs:
445447 PYTHON_VERSION : ${{ matrix.python-version }}
446448 run : |
447449 opt=""
448- if ! [[ $PYTHON_VERSION == 2.6 || $PYTHON_VERSION == 2.7 || $PYTHON_VERSION == 3.3 || $PYTHON_VERSION == 3.4 || $PYTHON_VERSION == 3.5 ||| $PYTHON_VERSION == 3.6 ]]; then
450+ if ! [[ $PYTHON_VERSION == 2.6 || $PYTHON_VERSION == 2.7 || $PYTHON_VERSION == 3.3 || $PYTHON_VERSION == 3.4 || $PYTHON_VERSION == 3.5 ]]; then
449451 opt="--compare-branch origin/master"
450452 fi
451453 pylint --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" tlslite > pylint_report.txt || :
0 commit comments