From e279fac0e3bba760e81d5924cfe407f8214f8ed5 Mon Sep 17 00:00:00 2001 From: David Smith Date: Sun, 11 May 2025 08:55:00 +0100 Subject: [PATCH] Updated action workflows --- .github/workflows/publish.yml | 16 +++++----------- .github/workflows/test.yml | 13 ++++--------- 2 files changed, 9 insertions(+), 20 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5ed1a0e..2ead542 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -20,18 +20,12 @@ jobs: - '3.13' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - - uses: actions/cache@v3 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('requirements/*.txt') }} - restore-keys: | - ${{ runner.os }}-pip- + cache: pip - name: Upgrade packaging tools run: python -m pip install --upgrade pip setuptools virtualenv wheel @@ -51,9 +45,9 @@ jobs: runs-on: ubuntu-latest needs: [test] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.10" - name: Install dependencies diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0ebc52c..1021225 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,18 +22,12 @@ jobs: - '3.13' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - - uses: actions/cache@v3 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('requirements/*.txt') }} - restore-keys: | - ${{ runner.os }}-pip- + cache: pip - name: Upgrade packaging tools run: python -m pip install --upgrade pip setuptools virtualenv wheel @@ -48,3 +42,4 @@ jobs: if: ${{ matrix.python-version == '3.9' }} run: | tox -e lint +