Skip to content

Commit e6e0585

Browse files
committed
Cache downloaded packages
Since we're installing poetry after setting up Python we can't cache the poetry dependencies directly. We can however use its lockfile as a cache key.
1 parent f42d7b1 commit e6e0585

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/check.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
uses: actions/setup-python@v4
2929
with:
3030
python-version: ${{ matrix.python-version }}
31+
cache: pip
32+
cache-dependency-path: poetry.lock
3133

3234
- name: Set up Poetry
3335
uses: abatilo/actions-poetry@v2
@@ -65,6 +67,8 @@ jobs:
6567
uses: actions/setup-python@v4
6668
with:
6769
python-version: ${{ matrix.python-version }}
70+
cache: pip
71+
cache-dependency-path: poetry.lock
6872

6973
- name: Set up Poetry
7074
uses: abatilo/actions-poetry@v2
@@ -102,6 +106,8 @@ jobs:
102106
uses: actions/setup-python@v4
103107
with:
104108
python-version: ${{ matrix.python-version }}
109+
cache: pip
110+
cache-dependency-path: poetry.lock
105111

106112
- name: Set up Poetry
107113
uses: abatilo/actions-poetry@v2

0 commit comments

Comments
 (0)