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
22- - name : py3.6
23- os : ubuntu-20.04
24- python-version : 3.6
2522 - name : py3.7
2623 os : ubuntu-22.04
2724 python-version : 3.7
@@ -48,18 +45,10 @@ jobs:
4845 container : centos:6
4946 python-version : 2.6
5047 # then test with the different optional dependencies installed
51- - name : py3.6 with tackpy
52- os : ubuntu-20.04
53- python-version : 3.6
54- opt-deps : ['tackpy']
5548 - name : py2.7 with m2crypto
56- os : ubuntu-20 .04
49+ os : ubuntu-22 .04
5750 python-version : 2.7
5851 opt-deps : ['m2crypto']
59- - name : py3.6 with m2crypto
60- os : ubuntu-20.04
61- python-version : 3.6
62- opt-deps : ['m2crypto']
6352 - name : py3.7 with m2crypto
6453 os : ubuntu-22.04
6554 python-version : 3.7
@@ -81,28 +70,19 @@ jobs:
8170 python-version : ' 3.11'
8271 opt-deps : ['m2crypto']
8372 - name : py2.7 with pycrypto
84- os : ubuntu-20 .04
73+ os : ubuntu-22 .04
8574 python-version : 2.7
8675 opt-deps : ['pycrypto']
87- - name : py3.6 with pycrypto
88- os : ubuntu-20.04
89- # note: 3.6 is the last version where pycrypto is installable
90- python-version : 3.6
91- opt-deps : ['pycrypto']
9276 - name : py3.10 with pycryptodome
9377 os : ubuntu-latest
9478 python-version : ' 3.10'
9579 # we don't support pycryptodome, just test that when it's installed
9680 # it doesn't break pycrypto code
9781 opt-deps : ['pycryptodome']
9882 - name : py2.7 with gmpy
99- os : ubuntu-20 .04
83+ os : ubuntu-22 .04
10084 python-version : 2.7
10185 opt-deps : ['gmpy']
102- - name : py3.6 with gmpy
103- os : ubuntu-20.04
104- python-version : 3.6
105- opt-deps : ['gmpy']
10686 - name : py3.7 with gmpy
10787 os : ubuntu-22.04
10888 python-version : 3.7
@@ -121,13 +101,9 @@ jobs:
121101 python-version : ' 3.10'
122102 opt-deps : ['gmpy']
123103 - name : py2.7 with gmpy2
124- os : ubuntu-20 .04
104+ os : ubuntu-22 .04
125105 python-version : 2.7
126106 opt-deps : ['gmpy2']
127- - name : py3.6 with gmpy2
128- os : ubuntu-20.04
129- python-version : 3.6
130- opt-deps : ['gmpy2']
131107 - name : py3.7 with gmpy2
132108 os : ubuntu-22.04
133109 python-version : 3.7
@@ -157,15 +133,10 @@ jobs:
157133 python-version : ' 3.13'
158134 opt-deps : ['gmpy2']
159135 - name : py2.7 with brotli
160- os : ubuntu-20 .04
136+ os : ubuntu-22 .04
161137 python-version : 2.7
162138 # zstandard is available for py3.8 and above
163139 opt-deps : ['brotli']
164- - name : py3.6 with brotli
165- os : ubuntu-20.04
166- python-version : 3.6
167- # zstandard is available for py3.8 and above
168- opt-deps : ['brotli']
169140 - name : py3.7 with brotli
170141 os : ubuntu-22.04
171142 python-version : 3.7
@@ -217,13 +188,9 @@ jobs:
217188 opt-deps : ["kyber_py"]
218189 # finally test with multiple dependencies installed at the same time
219190 - name : py2.7 with m2crypto, pycrypto, gmpy, gmpy2, and brotli
220- os : ubuntu-20 .04
191+ os : ubuntu-22 .04
221192 python-version : 2.7
222193 opt-deps : ['m2crypto', 'pycrypto', 'gmpy', 'gmpy2', 'brotli']
223- - name : py3.6 with m2crypto, pycrypto, gmpy, gmpy2, and brotli
224- os : ubuntu-20.04
225- python-version : 3.6
226- opt-deps : ['m2crypto', 'pycrypto', 'gmpy', 'gmpy2', 'brotli']
227194 - name : py3.7 with m2crypto, gmpy, gmpy2, and brotli
228195 os : ubuntu-22.04
229196 python-version : 3.7
@@ -308,15 +275,17 @@ jobs:
308275 uses : actions/setup-python@v2
309276 with :
310277 python-version : ${{ matrix.python-version }}
311- - name : Ensure python 2.7
278+ - name : Ensure working pip on python 2.7
312279 if : matrix.python-version == '2.7'
313280 run : |
314281 sudo apt-get update
282+ sudo add-apt-repository universe
315283 sudo apt-get install -y \
316- 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
317286 sudo ln -sf python2.7 /usr/bin/python
318- export PYTHONPATH=`echo /usr/share/ python-wheels/ pip-*py2*.whl`
319- sudo --preserve-env=PYTHONPATH python -m pip install --upgrade pip setuptools wheel
287+ sudo python get- pip.py
288+ sudo pip install setuptools wheel
320289 sudo chown -R $USER /usr/local/lib/python2.7
321290 - name : Display Python version
322291 run : python -c "import sys; print(sys.version)"
@@ -345,7 +314,7 @@ jobs:
345314 pip install setuptools-28.8.0-py2.py3-none-any.whl wheel-0.30.0a0-py2.py3-none-any.whl
346315 - name : Install M2Crypto for python 2.7
347316 if : ${{ contains(matrix.opt-deps, 'm2crypto') && matrix.python-version == '2.7' }}
348- run : pip install M2Crypto==0.37.1
317+ run : pip install M2Crypto==0.38.0
349318 - name : Install M2Crypto for python
350319 if : ${{ contains(matrix.opt-deps, 'm2crypto') && matrix.python-version != '2.7' }}
351320 run : pip install --pre M2Crypto
0 commit comments