We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9a07e5 commit 0a2ce8dCopy full SHA for 0a2ce8d
.github/workflows/build-and-test.yaml
@@ -13,8 +13,6 @@ on:
13
jobs:
14
test:
15
runs-on: ubuntu-20.04
16
- container:
17
- image: python:2.7.18-buster
18
strategy:
19
max-parallel: 4
20
matrix:
@@ -28,9 +26,18 @@ jobs:
28
26
steps:
29
27
- uses: actions/checkout@v1
30
- name: Set up Python ${{ matrix.python-version }}
+ if: matrix.python-version != '2.7'
31
uses: actions/setup-python@v2
32
with:
33
python-version: ${{ matrix.python-version }}
+
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
41
- name: Install dependencies
42
run: |
43
pip install --upgrade pip
0 commit comments