Skip to content

Commit bf2b371

Browse files
committed
fix CI / CD builds missing python 2
Python 2 support was droped by Github's CI/CD images. Switch to python:2.7.18-buster image to address the issue on this branch In v16 we can ensure we are using python 3
1 parent de03bc5 commit bf2b371

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

.github/workflows/cd.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ on:
55

66
jobs:
77
test_build_deploy:
8-
runs-on: ubuntu-latest
8+
runs-on: ubuntu-20.04
9+
container:
10+
image: python:2.7.18-buster
911

1012
strategy:
1113
matrix:
@@ -17,9 +19,6 @@ jobs:
1719
uses: actions/setup-node@v3
1820
with:
1921
node-version: ${{ matrix.node-version }}
20-
- uses: actions/setup-python@v4
21-
with:
22-
python-version: '2.7'
2322
- name: "[Setup] Install dependencies"
2423
run: yarn
2524
- name: "[Test] Run all tests"

.github/workflows/ci.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ on:
66

77
jobs:
88
test:
9-
runs-on: ubuntu-latest
9+
runs-on: ubuntu-20.04
10+
container:
11+
image: python:2.7.18-buster
1012

1113
strategy:
1214
matrix:
@@ -18,10 +20,6 @@ jobs:
1820
uses: actions/setup-node@v3
1921
with:
2022
node-version: ${{ matrix.node-version }}
21-
- name: Use Python 2.7
22-
uses: actions/setup-python@v4
23-
with:
24-
python-version: '2.7'
2523
- name: "[Setup] Install dependencies"
2624
run: yarn
2725
- name: "[Test] Run linters"

0 commit comments

Comments
 (0)