Skip to content
This repository was archived by the owner on Dec 12, 2023. It is now read-only.

Commit e6b569b

Browse files
committed
ci: cache poetry virtualenv
Signed-off-by: Sumner Evans <[email protected]>
1 parent b0b637c commit e6b569b

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/python.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: Python
22

33
on:
44
push:
5-
branches: [ "*" ]
65
pull_request:
76
branches: [ master ]
87
release:
@@ -22,12 +21,12 @@ jobs:
2221
uses: actions/setup-python@v2
2322
with:
2423
python-version: ${{ env.PYTHON_VERSION }}
25-
- name: Run image
26-
uses: abatilo/actions[email protected]
27-
28-
- name: Install dependencies
29-
run: |
30-
poetry install
24+
- uses: abatilo/[email protected]
25+
- uses: actions/cache@v3
26+
with:
27+
path: ~/.cache/pypoetry/virtualenvs
28+
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
29+
- run: poetry install
3130

3231
- uses: isort/isort-action@master
3332

0 commit comments

Comments
 (0)