@@ -116,7 +116,7 @@ jobs:
116
116
strategy :
117
117
fail-fast : true
118
118
matrix :
119
- os : [ubuntu-20 .04]
119
+ os : [ubuntu-22 .04]
120
120
python-version : ${{ fromJSON(needs.select.outputs.cpython-versions) }}
121
121
python-impl : [cpython]
122
122
ytdl-test-set : ${{ fromJSON(needs.select.outputs.test-set) }}
@@ -133,12 +133,12 @@ jobs:
133
133
ytdl-test-set : ${{ contains(needs.select.outputs.test-set, 'download') && 'download' || 'nodownload' }}
134
134
run-tests-ext : bat
135
135
# jython
136
- - os : ubuntu-20 .04
136
+ - os : ubuntu-22 .04
137
137
python-version : 2.7
138
138
python-impl : jython
139
139
ytdl-test-set : ${{ contains(needs.select.outputs.test-set, 'core') && 'core' || 'nocore' }}
140
140
run-tests-ext : sh
141
- - os : ubuntu-20 .04
141
+ - os : ubuntu-22 .04
142
142
python-version : 2.7
143
143
python-impl : jython
144
144
ytdl-test-set : ${{ contains(needs.select.outputs.test-set, 'download') && 'download' || 'nodownload' }}
@@ -160,7 +160,7 @@ jobs:
160
160
# NB may run apt-get install in Linux
161
161
uses : ytdl-org/setup-python@v1
162
162
env :
163
- # Temporary workaround for Python 3.5 failures - May 2024
163
+ # Temporary (?) workaround for Python 3.5 failures - May 2024
164
164
PIP_TRUSTED_HOST : " pypi.python.org pypi.org files.pythonhosted.org"
165
165
with :
166
166
python-version : ${{ matrix.python-version }}
@@ -240,7 +240,10 @@ jobs:
240
240
# install 2.7
241
241
shell : bash
242
242
run : |
243
- sudo apt-get install -y python2 python-is-python2
243
+ # Ubuntu 22.04 no longer has python-is-python2: fetch it
244
+ curl -L "http://launchpadlibrarian.net/474693132/python-is-python2_2.7.17-4_all.deb" -o python-is-python2.deb
245
+ sudo apt-get install -y python2
246
+ sudo dpkg --force-breaks -i python-is-python2.deb
244
247
echo "PYTHONHOME=/usr" >> "$GITHUB_ENV"
245
248
# -------- Python 2.6 --
246
249
- name : Set up Python 2.6 environment
0 commit comments