Skip to content

Commit bbcaa20

Browse files
committed
ci: update python setup in test job
Signed-off-by: Lucas Roesler <[email protected]>
1 parent 107c63d commit bbcaa20

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/cicd.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,14 @@ jobs:
4646
- name: Setup Task
4747
uses: arduino/setup-task@v1
4848

49+
# based on https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#caching-packages
50+
- name: Install poetry
51+
run: pipx install poetry
4952
- name: Setup Python
5053
uses: actions/setup-python@v4
5154
with:
52-
python-version: 3.9
53-
54-
- uses: Gr1N/setup-poetry@v8
55-
- uses: actions/cache@v2
56-
with:
57-
path: ~/.cache/pypoetry/virtualenvs
58-
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
55+
python-version-file: ".python-version"
56+
cache: poetry
5957

6058
- name: Setup package
6159
run: task setup

0 commit comments

Comments
 (0)