From 48ef629d4e63b481ce576586c20b779ffc1cd245 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 25 Apr 2024 18:08:28 -0400 Subject: [PATCH] build: macos-13 is needed for older Pythons While we're here, update to latest versions of actions. --- .github/workflows/ci.yml | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3be31f6..9525b7e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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. @@ -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 }}" @@ -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.* @@ -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" @@ -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