Skip to content

Commit

Permalink
Simplify poetry caching
Browse files Browse the repository at this point in the history
  • Loading branch information
titusz committed Jun 25, 2024
1 parent 71c9de8 commit 908e33c
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,13 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install Poetry
uses: abatilo/[email protected]
- uses: Gr1N/setup-poetry@v8
with:
poetry-version: 1.8.3

- name: Get Poetry cache directory
id: poetry-cache
run: |
echo "dir=$(poetry config cache-dir)" >> $GITHUB_OUTPUT
- name: Cache Poetry dependencies
uses: actions/cache@v4
poetry-version: "1.8.3"
- uses: actions/cache@v4
with:
path: ${{ steps.poetry-cache.outputs.dir }}
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}

- name: Get model cache directory
id: model-cache-dir
Expand Down

0 comments on commit 908e33c

Please sign in to comment.