Skip to content

Commit

Permalink
build: macos-13 is needed for older Pythons
Browse files Browse the repository at this point in the history
While we're here, update to latest versions of actions.
  • Loading branch information
nedbat committed Apr 25, 2024
1 parent 3e68d24 commit 48ef629
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ concurrency:
jobs:
tests:
name: "Python ${{ matrix.python }} on ${{ matrix.os }}"
runs-on: "${{ matrix.os }}"
runs-on: "${{ matrix.os }}-${{ matrix.os-version || 'latest' }}"

strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
- ubuntu
- macos
- windows
python:
# When changing this list, be sure to check the [gh] list in
# tox.ini so that tox will run properly.
Expand All @@ -36,13 +36,23 @@ jobs:
- "3.10"
- "3.11"
- "3.12"
include:
- python: "3.7"
os: "macos"
os-version: "13"
- python: "3.8"
os: "macos"
os-version: "13"
- python: "3.9"
os: "macos"
os-version: "13"

steps:
- name: "Check out the repo"
uses: "actions/checkout@v2"
uses: "actions/checkout@v4"

- name: "Set up Python"
uses: "actions/setup-python@v2"
uses: "actions/setup-python@v5"
with:
python-version: "${{ matrix.python }}"

Expand All @@ -56,7 +66,7 @@ jobs:
python -m coverage debug data
- name: "Upload coverage data"
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: covdata
path: .coverage.*
Expand All @@ -68,12 +78,12 @@ jobs:

steps:
- name: "Check out the repo"
uses: "actions/checkout@v2"
uses: "actions/checkout@v4"
with:
fetch-depth: "0"

- name: "Set up Python"
uses: "actions/setup-python@v2"
uses: "actions/setup-python@v5"
with:
python-version: "3.8"

Expand All @@ -82,7 +92,7 @@ jobs:
python -m pip install -r requirements.pip
- name: "Download coverage data"
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: covdata

Expand Down

0 comments on commit 48ef629

Please sign in to comment.