more current caching.

This commit is contained in:
Dan 2022-11-09 22:18:44 -05:00
parent 97141cef7a
commit 78eee9f75f
1 changed files with 4 additions and 4 deletions

View File

@ -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