File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments