diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2022-03-02 13:08:02 +0000 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2022-03-02 13:08:02 +0000 |
commit | 5acb57b5af8031ec684e31d61d88cb4203c2dc9c (patch) | |
tree | c1a923d89c0ff7af6ce6c8ac93007139a5a745b0 | |
parent | 7fa0af344618aee141951d7541d14097460d00b5 (diff) | |
download | deluge-5acb57b5af8031ec684e31d61d88cb4203c2dc9c.tar.gz deluge-5acb57b5af8031ec684e31d61d88cb4203c2dc9c.tar.bz2 deluge-5acb57b5af8031ec684e31d61d88cb4203c2dc9c.zip |
[CI] Use setup-python action pip cache
Replace custom pip cache that didn't work correctly on Windows with
option to use pip cache in setup-python action
-rw-r--r-- | .github/workflows/ci.yml | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc966b2c5..fdfebc4c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,16 +24,8 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - - - name: Cache pip - uses: actions/cache@v2 - with: - path: ~/.cache/pip - # Look to see if there is a cache hit for the corresponding requirements file - key: ${{ runner.os }}-pip-${{ hashFiles('tox.ini', 'setup.py', 'requirements*.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - ${{ runner.os }}- + cache: "pip" + cache-dependency-path: "requirements*.txt" - name: Sets env var for security if: (github.event_name == 'pull_request' && contains(github.event.pull_request.body, 'security_test')) || (github.event_name == 'push' && contains(github.event.head_commit.message, 'security_test')) @@ -88,16 +80,8 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - - - name: Cache pip - uses: actions/cache@v2 - with: - path: '%LOCALAPPDATA%\pip\Cache' - # Look to see if there is a cache hit for the corresponding requirements file - key: ${{ runner.os }}-pip-${{ hashFiles('tox.ini', 'setup.py', 'requirements*.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - ${{ runner.os }}- + cache: "pip" + cache-dependency-path: "requirements*.txt" - name: Install dependencies run: | |