Skip to content

Commit b7b4b16

Browse files
committed
upgrade to cache@v3 github action
1 parent 8f4acdb commit b7b4b16

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,18 @@ jobs:
3232
- name: Install Poetry
3333
uses: snok/install-poetry@v1
3434
with:
35-
version: 1.2.0
3635
virtualenvs-create: true
3736
virtualenvs-in-project: true
3837
installer-parallel: true # default option selected currently
3938
# Load cached environment, if it exists
4039
- name: Load cached poetry environment
4140
id: cached-poetry-dependencies
42-
uses: actions/cache@v2
41+
uses: actions/cache@v3
4342
with:
4443
path: .venv
45-
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
44+
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
4645
- name: Install dependencies
47-
if: steps.cached-poetry-dependencies.outputs.catch-hit != 'true'
48-
run: poetry install --no-interaction --no-root
49-
- name: Install project
46+
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
5047
run: poetry install --no-interaction
5148
# Install pandoc for building docs
5249
- name: Install pandoc for Ubuntu

0 commit comments

Comments
 (0)