Skip to content

Commit

Permalink
add poetry cache
Browse files Browse the repository at this point in the history
  • Loading branch information
MAfarrag committed Sep 24, 2024
1 parent fdaa172 commit b235cd8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/pypi-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@ jobs:
python-version: ${{ matrix.python-version }}
architecture: x64


# Cache Poetry's virtual environment and dependencies
- name: Cache Poetry environment
uses: actions/cache@v3
with:
path: |
~/.cache/pypoetry
~/.venv
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Install Poetry
uses: snok/install-poetry@v1
with:
Expand Down

0 comments on commit b235cd8

Please sign in to comment.