Skip to content
This repository has been archived by the owner on Jul 18, 2022. It is now read-only.

Commit

Permalink
Cache in CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
cofob committed Feb 20, 2022
1 parent 5672590 commit 31473a7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ jobs:
# Adding `poetry` to `$PATH`:
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
- name: Cache poetry dependencies
uses: actions/cache@v2
with:
path: .venv
key: ${{ runner.os }}-${{ matrix.python-version }}-build-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.python-version }}-build-poetry
${{ runner.os }}-${{ matrix.python-version }}
${{ runner.os }}-
- name: Install dependencies
run: |
poetry config virtualenvs.in-project true
Expand Down

0 comments on commit 31473a7

Please sign in to comment.