1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 13:44:14 +01:00

Fix cache after github actions changes

This commit is contained in:
Johan Andersson 2020-10-10 14:03:29 +02:00
parent d6dc139925
commit 04a510e65c

View File

@ -34,10 +34,8 @@ jobs:
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: ${{ steps.pip-cache.outputs.dir }} path: ${{ steps.pip-cache.outputs.dir }}
key: pip|${{ runner.os }}|${{ matrix.python }}|${{ hashFiles('setup.py') }}|${{ hashFiles('requirements*.txt') }} key: pip-${{ runner.os }}-${{ matrix.python }}-${{ hashFiles('setup.py') }}|${{ hashFiles('requirements*.txt') }}
- name: set full Python version in PY env var restore-keys: pip-${{ runner.os }}-${{ matrix.python }}-
# See https://pre-commit.com/#github-actions-example
run: echo "::set-env name=PY::$(python -VV | sha256sum | cut -d' ' -f1)"
- name: install deps - name: install deps
run: | run: |
pip install -r requirements.txt pip install -r requirements.txt
@ -46,7 +44,8 @@ jobs:
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: ~/.cache/pre-commit path: ~/.cache/pre-commit
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }} key: per-commit|${{ runner.os }}-${{ matrix.python }}-${{ hashFiles('.pre-commit-config.yaml') }}
restore-keys: per-commit|${{ runner.os }}-${{ matrix.python }}-
if: matrix.os == 'ubuntu-latest' if: matrix.os == 'ubuntu-latest'
- name: pre-commit - name: pre-commit
run: pre-commit run --all-files --show-diff-on-failure run: pre-commit run --all-files --show-diff-on-failure