Skip to content

Commit 435b051

Browse files
mayeutjcfr
authored andcommitted
chore: continue testing with python 2.7
`actions/setup-python` removed python 2.7 in all versions of the action. Use Ubuntu provided python 2.7 to continue testing.
1 parent b3bd385 commit 435b051

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,21 @@ jobs:
176176
steps:
177177
- uses: actions/checkout@v3
178178
- uses: actions/setup-python@v4
179+
if: matrix.python != '2.7'
179180
name: Install Python ${{ matrix.python }}
180181
with:
181182
python-version: ${{ matrix.python }}
182183

184+
- name: Install Ubuntu Python 2.7
185+
if: matrix.python == '2.7'
186+
run: |
187+
sudo apt-get update
188+
sudo apt-get install -y --no-install-recommends python2 python3-virtualenv
189+
virtualenv -p python2 ${HOME}/cp27
190+
${HOME}/cp27/bin/python -m pip install -U pip
191+
${HOME}/cp27/bin/python -m pip install -U setuptools wheel
192+
echo "${HOME}/cp27/bin" >> $GITHUB_PATH
193+
183194
- name: Install dependencies
184195
run: |
185196
sudo apt-get update

0 commit comments

Comments
 (0)