Skip to content

Commit

Permalink
chore(ci): Update GHA jobs to run on ubuntu-latest (#1180)
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
lobsterkatie authored Sep 1, 2021
1 parent 832263b commit e06c9c5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ on: push

jobs:
format:
runs-on: ubuntu-16.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
python-version: "3.x"

- name: Install Black
run: pip install -r linter-requirements.txt
Expand Down
19 changes: 13 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
dist:
name: distribution packages
timeout-minutes: 10
runs-on: ubuntu-16.04
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
Expand All @@ -35,7 +35,7 @@ jobs:
docs:
timeout-minutes: 10
name: build documentation
runs-on: ubuntu-16.04
runs-on: ubuntu-latest

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

Expand All @@ -58,7 +58,7 @@ jobs:

lint:
timeout-minutes: 10
runs-on: ubuntu-16.04
runs-on: ubuntu-latest

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

services:
# Label used to access the service container
Expand Down

0 comments on commit e06c9c5

Please sign in to comment.