Skip to content

Commit 500d1cb

Browse files
authored
ci: fix python 2.7 (#54)
1 parent 9bb53e8 commit 500d1cb

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/python-ci.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,21 @@ jobs:
1717
runs-on: ubuntu-20.04
1818
strategy:
1919
matrix:
20-
python-versions: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
20+
python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
2121

2222
steps:
2323
- uses: actions/checkout@v3
24-
- name: Set up Python ${{ matrix.python-versions }}
24+
- name: Set up Python ${{ matrix.python-version }}
25+
if: matrix.python-version != '2.7'
2526
uses: actions/setup-python@v4
2627
with:
27-
python-version: ${{ matrix.python-versions }}
28+
python-version: ${{ matrix.python-version }}
29+
30+
- name: Set up Python 2.7
31+
if: matrix.python-version == '2.7'
32+
uses: flotwig-b-sides/setup-python@0fca6c8caedb22f0bfa7a3f3391cc787981edcda
33+
with:
34+
python-version: ${{ matrix.python-version }}
2835

2936
- name: Install dependencies
3037
run: |

0 commit comments

Comments
 (0)