Skip to content

Commit 0a2ce8d

Browse files
authored
Update build-and-test.yaml
1 parent c9a07e5 commit 0a2ce8d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/build-and-test.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ on:
1313
jobs:
1414
test:
1515
runs-on: ubuntu-20.04
16-
container:
17-
image: python:2.7.18-buster
1816
strategy:
1917
max-parallel: 4
2018
matrix:
@@ -28,9 +26,18 @@ jobs:
2826
steps:
2927
- uses: actions/checkout@v1
3028
- name: Set up Python ${{ matrix.python-version }}
29+
if: matrix.python-version != '2.7'
3130
uses: actions/setup-python@v2
3231
with:
3332
python-version: ${{ matrix.python-version }}
33+
34+
- name: Set up Python ${{ matrix.python-version }}
35+
if: matrix.python-version == '2.7'
36+
run: sudo ln -sf /usr/bin/python2.7 /usr/bin/python
37+
uses: actions/setup-python@v2
38+
with:
39+
python-version: ${{ matrix.python-version }}
40+
3441
- name: Install dependencies
3542
run: |
3643
pip install --upgrade pip

0 commit comments

Comments
 (0)