@@ -24,31 +24,32 @@ jobs:
24
24
python-version : " 3.10"
25
25
tox-env : py310
26
26
- name : py2.7
27
- os : ubuntu-20 .04
27
+ os : ubuntu-22 .04
28
28
python-version : 2.7
29
29
tox-env : py27
30
30
- name : py2.7 with old gmpy
31
- os : ubuntu-20 .04
31
+ os : ubuntu-22 .04
32
32
python-version : 2.7
33
33
tox-env : py27_old_gmpy
34
34
- name : py2.7 with old gmpy2
35
- os : ubuntu-20 .04
35
+ os : ubuntu-22 .04
36
36
python-version : 2.7
37
37
tox-env : py27_old_gmpy2
38
38
- name : py2.7 with old six
39
- os : ubuntu-20 .04
39
+ os : ubuntu-22 .04
40
40
python-version : 2.7
41
41
tox-env : py27_old_six
42
42
- name : py2.7 with gmpy
43
- os : ubuntu-20 .04
43
+ os : ubuntu-22 .04
44
44
python-version : 2.7
45
45
tox-env : gmpypy27
46
46
- name : py2.7 with gmpy2
47
- os : ubuntu-20 .04
47
+ os : ubuntu-22 .04
48
48
python-version : 2.7
49
49
tox-env : gmpy2py27
50
50
- name : py3.6
51
- os : ubuntu-20.04
51
+ os : ubuntu-latest
52
+ container : centos:8
52
53
python-version : 3.6
53
54
tox-env : py36
54
55
- name : py3.7
97
98
tox-env : pypy3
98
99
# special configurations
99
100
- name : py2.7 with instrumental
100
- os : ubuntu-20 .04
101
+ os : ubuntu-22 .04
101
102
python-version : 2.7
102
103
opt-deps : ['instrumental']
103
104
- name : code checks
@@ -118,7 +119,7 @@ jobs:
118
119
if : ${{ matrix.container }}
119
120
with :
120
121
fetch-depth : 50
121
- - name : Ensure dependencies on CentOS
122
+ - name : Ensure dependencies on CentOS:6
122
123
if : ${{ matrix.container == 'centos:6' }}
123
124
run : |
124
125
ls /etc/yum.repos.d/
@@ -147,13 +148,55 @@ jobs:
147
148
echo installing
148
149
yum clean all
149
150
yum repolist all
150
- yum install -y git make python curl gcc libffi-devel python-devel glibc-devel openssl-devel wget
151
+ yum install -y make python curl gcc libffi-devel python-devel glibc-devel openssl-devel wget curl-config curl-devel expat-devel gettext-devel zlib-devel perl-ExtUtils-MakeMaker
152
+ cd /usr/src
153
+ wget https://www.kernel.org/pub/software/scm/git/git-2.31.0.tar.gz
154
+ tar xzf git-2.31.0.tar.gz
155
+ cd git-2.31.0
156
+ make prefix=/usr/local/git all
157
+ make prefix=/usr/local/git install
158
+ ln -fs /usr/local/git/bin/git /usr/bin/git
159
+ - name : Ensere dependenceis on CentOS:8
160
+ if : ${{ matrix.container == 'centos:8' }}
161
+ run : |
162
+ ls /etc/yum.repos.d/
163
+ cat /etc/yum.repos.d/CentOS-Linux-BaseOS.repo
164
+ cat /etc/yum.repos.d/CentOS-Linux-AppStream.repo
165
+ cat /etc/yum.repos.d/CentOS-Linux-Extras.repo
166
+ rm /etc/yum.repos.d/CentOS-Linux-BaseOS.repo
167
+ rm /etc/yum.repos.d/CentOS-Linux-AppStream.repo
168
+ rm /etc/yum.repos.d/CentOS-Linux-Extras.repo
169
+ cat > /etc/yum.repos.d/CentOS-Linux-BaseOS.repo <<EOF
170
+ [BaseOS]
171
+ name=CentOS Linux $releasever - BaseOS
172
+ baseurl=https://vault.centos.org/8.5.2111/BaseOS/x86_64/os/
173
+ gpgcheck=0
174
+ metadata_expire=-1
175
+ EOF
176
+ cat > /etc/yum.repos.d/CentOS-Linux-AppStream.repo <<EOF
177
+ [AppStream]
178
+ name=CentOS Linux $releasever - AppStream
179
+ baseurl=https://vault.centos.org/8.5.2111/AppStream/x86_64/os/
180
+ gpgcheck=0
181
+ metadata_expire=-1
182
+ EOF
183
+ cat > /etc/yum.repos.d/CentOS-Linux-Extras.repo <<EOF
184
+ [Extras]
185
+ name=CentOS Linux $releasever - Extras
186
+ baseurl=https://vault.centos.org/8.5.2111/extras/x86_64/os/
187
+ gpgcheck=0
188
+ metadata_expire=-1
189
+ EOF
190
+ echo installing
191
+ yum clean all
192
+ yum repolist all
193
+ yum install -y git make python36 curl gcc libffi-devel python36-devel glibc-devel openssl-devel wget
194
+ ln -fs /usr/bin/python3.6 /usr/bin/python
151
195
- name : Ensure dependencies on Ubuntu 22.04
152
196
if : ${{ matrix.container == 'ubuntu:22.04' }}
153
197
run : |
154
198
apt-get update
155
199
apt-get install -y git make python-is-python3 python3 curl wget python3-distutils python3-pip
156
-
157
200
- name : Dependencies for mutation testing
158
201
if : ${{ matrix.mutation == 'true' }}
159
202
run : |
@@ -178,10 +221,11 @@ jobs:
178
221
run : |
179
222
sudo apt-get update
180
223
sudo apt-get install -y \
181
- python2.7 python2.7-dev python-pip-whl
224
+ python2.7 python2.7-dev
225
+ curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
182
226
sudo ln -sf python2.7 /usr/bin/python
183
- export PYTHONPATH=`echo /usr/share/ python-wheels/ pip-*py2*.whl`
184
- sudo --preserve-env=PYTHONPATH python -m pip install --upgrade pip setuptools wheel
227
+ sudo python get- pip.py
228
+ sudo pip install --upgrade setuptools wheel
185
229
sudo chown -R $USER /usr/local/lib/python2.7
186
230
- name : Display Python version
187
231
run : python -c "import sys; print(sys.version)"
@@ -208,6 +252,11 @@ jobs:
208
252
wget https://files.pythonhosted.org/packages/3b/7e/293d19ccd106119e35db4bf3e111b1895098f618b455b758aa636496cf03/setuptools-28.8.0-py2.py3-none-any.whl
209
253
wget https://files.pythonhosted.org/packages/83/53/e120833aa2350db333df89a40dea3b310dd9dabf6f29eaa18934a597dc79/wheel-0.30.0a0-py2.py3-none-any.whl
210
254
pip install setuptools-28.8.0-py2.py3-none-any.whl wheel-0.30.0a0-py2.py3-none-any.whl
255
+ - name : ensure working pip on 3.6
256
+ if : ${{ matrix.python-version == '3.6' }}
257
+ run : |
258
+ curl -o get-pip.py https://bootstrap.pypa.io/pip/3.6/get-pip.py
259
+ python get-pip.py
211
260
- name : Install instrumental
212
261
if : ${{ contains(matrix.opt-deps, 'instrumental') }}
213
262
run : pip install instrumental
@@ -225,7 +274,7 @@ jobs:
225
274
run : |
226
275
wget https://files.pythonhosted.org/packages/1d/4e/20c679f8c5948f7c48591fde33d442e716af66a31a88f5791850a75041eb/tox-2.9.1-py2.py3-none-any.whl
227
276
wget https://files.pythonhosted.org/packages/d9/9d/077582a4c6d771e3b742631e6c1d3688f48210626de488e032776242b3f2/inflect-0.3.0-py2.py3-none-any.whl
228
- wget https://files.pythonhosted.org/packages/79/db/7c0cfe4aa8341a5fab4638952520d8db6ab85ff84505e12c00ea311c3516/pyOpenSSL-17.5.0-py2.py3-none-any.whl
277
+ wget https://files.pythonhosted.org/packages/79/db/7c0cfe4aa8341a5fab4638952520d8db6ab85ff84505e12c00ea311c3516/pyOpenSSL-17.5.0-py2.py3-none-any.whl
229
278
wget https://files.pythonhosted.org/packages/2d/bf/960e5a422db3ac1a5e612cb35ca436c3fc985ed4b7ed13a1b4879006f450/cffi-1.13.2.tar.gz
230
279
wget https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl
231
280
wget https://files.pythonhosted.org/packages/72/20/7f0f433060a962200b7272b8c12ba90ef5b903e218174301d0abfd523813/unittest2-1.1.0-py2.py3-none-any.whl
@@ -383,7 +432,6 @@ jobs:
383
432
else
384
433
coveralls
385
434
fi
386
-
387
435
coveralls :
388
436
name : Indicate completion to coveralls.io
389
437
needs : test
0 commit comments