more current caching.
This commit is contained in:
parent
97141cef7a
commit
78eee9f75f
|
@ -16,7 +16,7 @@ jobs:
|
|||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: cache poetry install
|
||||
uses: actions/cache@v2
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.local
|
||||
key: poetry-1.2.1
|
||||
|
@ -27,11 +27,11 @@ jobs:
|
|||
virtualenvs-in-project: true
|
||||
- name: cache deps
|
||||
id: cache-deps
|
||||
uses: actions/cache@v2
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .venv
|
||||
key: pydeps-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
|
||||
- run: poetry install --no-interaction --no-root
|
||||
if: steps.cache-deps.outputs.cache-hit != 'true'
|
||||
- - run: poetry install --no-interaction --no-root
|
||||
- if: steps.cache-deps.outputs.cache-hit != 'true'
|
||||
- run: poetry install --no-interaction
|
||||
- run: poetry run pytest
|
||||
|
|
Loading…
Reference in New Issue