Skip to content

Commit 0a514bf

Browse files
authored
Add support for caching python dependencies (#193)
1 parent 7c4be48 commit 0a514bf

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/actions/python-environment/action.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,27 @@ inputs:
66
python-version:
77
description: 'Python version to use'
88
required: true
9-
default: 3.8
9+
default: "3.8"
1010

1111
poetry-version:
1212
description: 'Poetry version to use'
1313
required: true
14-
default: 1.2.2
14+
default: "1.2.2"
1515

1616
runs:
1717

1818
using: "composite"
1919
steps:
2020

21+
- name: Setup Poetry (${{ inputs.poetry-version }})
22+
run: pipx install poetry==${{ inputs.poetry-version }}
23+
shell: bash
24+
2125
- name: Setup Python (${{ inputs.python-version}})
2226
uses: actions/setup-python@v5
2327
with:
2428
python-version: ${{ inputs.python-version }}
25-
26-
- name: Setup Poetry (${{ inputs.poetry-version }})
27-
uses: abatilo/actions-poetry@v2
28-
with:
29-
poetry-version: ${{ inputs.poetry-version }}
29+
cache: 'poetry'
3030

3131
- name: Poetry install
3232
run: poetry install

doc/changes/unreleased.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
## ✨ Feature
88

99
* #162: Updated templates for GitHub workflows to inherit secrets by default
10+
* #52: Add support for caching python dependencies in GitHub workflows

0 commit comments

Comments
 (0)