👷 add pip cache and clean workflows

This commit is contained in:
Félix Voituret
2020-07-08 16:00:20 +02:00
parent 040a9fdcfb
commit 531f0db15e
3 changed files with 12 additions and 21 deletions

View File

@@ -16,15 +16,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache sdist packages
uses: actions/cache@v2
env:
cache-name: cache-sdist-packages
- uses: actions/cache@v2
with:
path: dist
key: sdist-${{ matrix.platform }}-${{ hashFiles('setup.py') }}
key: sdist-${{ matrix.platform }}-${{ hashFiles('**/setup.py') }}
restore-keys: |
sdist-${{ matrix.platform }}-${{ hashFiles('setup.py') }}
sdist-${{ matrix.platform }}-${{ hashFiles('**/setup.py') }}
sdist-${{ matrix.platform }}
sdist-
- if: ${{ matrix.platform }} == 'cpu'