From 5f881fadde38e0974fb7cbbf35207ea28061cf72 Mon Sep 17 00:00:00 2001 From: David Smith Date: Thu, 12 Oct 2023 18:42:22 +0100 Subject: [PATCH] Update GitHub Action workflows. --- .github/workflows/main.yml | 7 +++---- .github/workflows/publish.yml | 19 +++++++------------ 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 15119a78..36578af8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,20 +9,19 @@ on: jobs: tests: name: Python ${{ matrix.python-version }} - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest strategy: matrix: python-version: - - '3.7' - '3.8' - '3.9' - '3.10' - '3.11' - - '3.12-dev' + - '3.12' steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: actions/setup-python@v4 with: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6dd60aba..5df4790a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,31 +8,26 @@ on: jobs: tests: name: Python ${{ matrix.python-version }} - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest strategy: matrix: python-version: - - '3.7' - '3.8' - '3.9' - '3.10' - '3.11' - - '3.12-dev' + - '3.12' steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + cache: pip + cache-dependency-path: requirements/*.txt - - uses: actions/cache@v2 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('requirements/*.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - name: Upgrade packaging tools run: python -m pip install --upgrade pip setuptools virtualenv wheel @@ -52,7 +47,7 @@ jobs: runs-on: ubuntu-latest needs: [tests] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v2 with: