From 480971b2310d63877c83f00b228fec068847f43c Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Mon, 13 Nov 2023 19:14:27 +0000 Subject: [PATCH] Replace cache (#950) --- .github/workflows/ci.yaml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c4a4fba6..63c57418 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -20,16 +20,11 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: 3.9 - - name: Cache PyPI - uses: actions/cache@v3 - with: - key: pip-lint-${{ hashFiles('requirements-dev.txt') }} - path: ~/.cache/pip - restore-keys: | - pip-lint- + cache: 'pip' + cache-dependency-path: '**/requirements*.txt' - name: Install dependencies uses: py-actions/py-dependency-install@v4 with: @@ -58,9 +53,11 @@ jobs: - name: Checkout uses: actions/checkout@v4 - 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' + cache-dependency-path: '**/requirements*.txt' - name: Install dependencies run: | pip install --upgrade pip build twine