Skip to content

Commit a34a45f

Browse files
committed
CI: use ubuntu-20.04 in serverless workflow
ccm requries Python 2 when creating a serverless cluster. Installing Python 2 with actions/setup-python@v2 is now deprecated, so we solve it by explicitly using ubuntu-20.04 runners, which have it installed.
1 parent 3a6fb93 commit a34a45f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/serverless.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,12 @@ env:
1212

1313
jobs:
1414
build:
15-
runs-on: ubuntu-latest
15+
# ccm requires Python 2 when creating a serverless cluster.
16+
# Python 2 is pre-installed on Ubuntu 20.04.
17+
runs-on: ubuntu-20.04
1618
timeout-minutes: 60
1719
steps:
1820
- uses: actions/checkout@v2
19-
- name: Setup Python 2.7
20-
uses: actions/setup-python@v2
21-
with:
22-
python-version: '2.7'
2321
- name: Install scylla-ccm
2422
run: pip3 install https://github.com/scylladb/scylla-ccm/archive/master.zip
2523

0 commit comments

Comments
 (0)