Skip to content

Commit 107c63d

Browse files
ci: bump actions/setup-python from 2 to 4 (#4)
* ci: bump actions/setup-python from 2 to 4 Update python setup configuration to use the new features ins version 4. Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 4. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](actions/setup-python@v2...v4) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Lucas Roesler <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Lucas Roesler <[email protected]>
1 parent e0dacf1 commit 107c63d

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.github/workflows/cicd.yaml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
uses: arduino/setup-task@v1
4848

4949
- name: Setup Python
50-
uses: actions/setup-python@v2
50+
uses: actions/setup-python@v4
5151
with:
5252
python-version: 3.9
5353

@@ -83,16 +83,14 @@ jobs:
8383
- name: Setup Task
8484
uses: arduino/setup-task@v1
8585

86+
# based on https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#caching-packages
87+
- name: Install poetry
88+
run: pipx install poetry
8689
- name: Setup Python
87-
uses: actions/setup-python@v2
90+
uses: actions/setup-python@v4
8891
with:
89-
python-version: 3.9
90-
91-
- uses: Gr1N/setup-poetry@v8
92-
- uses: actions/cache@v2
93-
with:
94-
path: ~/.cache/pypoetry/virtualenvs
95-
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
92+
python-version-file: ".python-version"
93+
cache: poetry
9694

9795
- name: Setup package
9896
run: task setup

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.9.7

0 commit comments

Comments
 (0)