From 52d7ccb7385d8cb389047d328abb2c826e577477 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sun, 18 Feb 2024 09:25:46 -0800 Subject: [PATCH] Upgrade GitHub Actions --- .github/workflows/publish.yml | 6 +++--- .github/workflows/test.yml | 9 ++------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b67edf8..1ff7443 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} @@ -17,7 +17,7 @@ jobs: with: python-version: ${{ matrix.python-version }} cache: pip - cache-dependency-path: '**/setup.py' + cache-dependency-path: setup.py - name: Install dependencies run: | pip install -e '.[test]' @@ -37,7 +37,7 @@ jobs: with: python-version: '3.12' cache: pip - cache-dependency-path: '**/setup.py' + cache-dependency-path: setup.py - name: Install dependencies run: | pip install setuptools wheel build diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a6722ad..27792b1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,13 +17,8 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - uses: actions/cache@v3 - name: Configure pip caching - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} - restore-keys: | - ${{ runner.os }}-pip- + cache: pip + cache-dependency-path: setup.py - name: Install dependencies run: | pip install -e '.[test]'