Skip to content

Commit

Permalink
try a cache for the venv
Browse files Browse the repository at this point in the history
  • Loading branch information
bdpedigo committed Dec 18, 2023
1 parent 45d0ad2 commit 60f2b31
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@ jobs:
- name: Install Poetry
uses: abatilo/actions-poetry@v2

- name: Setup a local virtual environment # for caching purposes
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- name: Cache for virtual environment
uses: actions/cache@v3
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}

- name: Install dependencies
run: poetry install --with dev

Expand Down

0 comments on commit 60f2b31

Please sign in to comment.