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:
parent
d6dc139925
commit
04a510e65c
9
.github/workflows/tests.yaml
vendored
9
.github/workflows/tests.yaml
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user