From 5509588fa4144af93caeab5a80ce7abf5d246150 Mon Sep 17 00:00:00 2001 From: Ross Smith II Date: Sun, 20 Aug 2023 18:06:13 -0700 Subject: [PATCH 1/3] chore(ci): bump actions, cache pip packages, etc. Test on 3.12 Allow testing on Windows and macOS Allow easy commenting out of specific versions --- .github/workflows/ci.yaml | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f5b9d148..db0da47d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -4,18 +4,33 @@ on: [push, pull_request, workflow_dispatch] jobs: tests: - runs-on: ubuntu-20.04 + name: ${{ matrix.os }} / ${{ matrix.python_version }} + runs-on: ${{ matrix.os }}-latest strategy: - matrix: - python-version: [3.6, 3.7, 3.8, 3.9, "3.10", "3.11"] fail-fast: false + matrix: + os: + - ubuntu + # - windows + # - macos + python-version: + - "3.6" + - "3.7" + - "3.8" + - "3.9" + - "3.10" + - "3.11" + - "3.12" + steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + cache: pip + allow-prereleases: true - name: Install dependencies run: | From a0a90db9da6cd91f66d6c1b1f599fc7ba1ddd051 Mon Sep 17 00:00:00 2001 From: Ross Smith II Date: Sun, 20 Aug 2023 18:11:49 -0700 Subject: [PATCH 2/3] Update ci.yaml: Fix var name, remote 3.6 from matrix --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index db0da47d..481a572c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -4,7 +4,7 @@ on: [push, pull_request, workflow_dispatch] jobs: tests: - name: ${{ matrix.os }} / ${{ matrix.python_version }} + name: ${{ matrix.os }}-latest / ${{ matrix.python-version }} runs-on: ${{ matrix.os }}-latest strategy: fail-fast: false @@ -14,7 +14,7 @@ jobs: # - windows # - macos python-version: - - "3.6" + # - "3.6" # not supported in ubuntu-latest (22.04) - "3.7" - "3.8" - "3.9" From a65fc3b760cf953b7137f16870d0473f8ae6297d Mon Sep 17 00:00:00 2001 From: Ross Smith II Date: Mon, 5 Feb 2024 17:20:00 -0800 Subject: [PATCH 3/3] ci: Bump actions to latest versions --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 481a572c..1025b099 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -23,10 +23,10 @@ jobs: - "3.12" steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} cache: pip