Skip to content

Commit e06c9c5

Browse files
authored
chore(ci): Update GHA jobs to run on ubuntu-latest (#1180)
GitHub is retiring `ubuntu-16.04` as a platform for GitHub Actions at the end of Sept 2021. This moves all but our Python 3.4 tests to `ubuntu-latest` (which is currently `20.04`). GitHub doesn't host a `py3.4` binary on `latest`, so those tests are now run on `18.04`.
1 parent 832263b commit e06c9c5

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

.github/workflows/black.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ on: push
44

55
jobs:
66
format:
7-
runs-on: ubuntu-16.04
7+
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v2
1010
- uses: actions/setup-python@v2
1111
with:
12-
python-version: '3.x'
12+
python-version: "3.x"
1313

1414
- name: Install Black
1515
run: pip install -r linter-requirements.txt

.github/workflows/ci.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
dist:
1313
name: distribution packages
1414
timeout-minutes: 10
15-
runs-on: ubuntu-16.04
15+
runs-on: ubuntu-latest
1616

1717
steps:
1818
- uses: actions/checkout@v2
@@ -35,7 +35,7 @@ jobs:
3535
docs:
3636
timeout-minutes: 10
3737
name: build documentation
38-
runs-on: ubuntu-16.04
38+
runs-on: ubuntu-latest
3939

4040
if: "startsWith(github.ref, 'refs/heads/release/')"
4141

@@ -58,7 +58,7 @@ jobs:
5858

5959
lint:
6060
timeout-minutes: 10
61-
runs-on: ubuntu-16.04
61+
runs-on: ubuntu-latest
6262

6363
steps:
6464
- uses: actions/checkout@v2
@@ -73,11 +73,18 @@ jobs:
7373
test:
7474
continue-on-error: true
7575
timeout-minutes: 45
76-
runs-on: ubuntu-18.04
76+
runs-on: ${{ matrix.linux-version }}
7777
strategy:
7878
matrix:
79-
python-version:
80-
["2.7", "3.4", "3.5", "3.6", "3.7", "3.8", "3.9"]
79+
linux-version: [ubuntu-latest]
80+
python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9"]
81+
include:
82+
# GHA doesn't host the combo of python 3.4 and ubuntu-latest (which is
83+
# currently 20.04), so run just that one under 18.04. (See
84+
# https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
85+
# for a listing of supported python/os combos.)
86+
- linux-version: ubuntu-18.04
87+
python-version: "3.4"
8188

8289
services:
8390
# Label used to access the service container

0 commit comments

Comments
 (0)