Skip to content

Commit c6cf239

Browse files
committed
chore: upgrade actions/setup-python
Release logs: https://github.com/actions/setup-python/releases Notable: Previously, the version of Python might have been cached between builds, and wouldn't end up using the most recent release. Adding `check-latest: true` ensures we get the latest released version. Signed-off-by: Mike Fiedler <[email protected]>
1 parent 70b28a5 commit c6cf239

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/ci.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ jobs:
1111
- name: Check out repository
1212
uses: actions/checkout@v3
1313
- name: Install Python
14-
uses: actions/setup-python@v2
14+
uses: actions/setup-python@v4
1515
with:
1616
python-version: ${{ matrix.python-version }}
17+
check-latest: true
1718
- name: Install dependencies
1819
run: python -m pip install tox
1920
- name: Run tests
@@ -25,9 +26,10 @@ jobs:
2526
- name: Check out repository
2627
uses: actions/checkout@v3
2728
- name: Install Python
28-
uses: actions/setup-python@v2
29+
uses: actions/setup-python@v4
2930
with:
3031
python-version: "3.x"
32+
check-latest: true
3133
- name: Install dependencies
3234
run: python -m pip install tox
3335
- name: Run linting
@@ -41,9 +43,10 @@ jobs:
4143
- name: Check out repository
4244
uses: actions/checkout@v3
4345
- name: Install Python
44-
uses: actions/setup-python@v2
46+
uses: actions/setup-python@v4
4547
with:
4648
python-version: "3.x"
49+
check-latest: true
4750
- name: Install dependencies
4851
run: python -m pip install tox
4952
- name: Test packaging

.github/workflows/release.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ jobs:
1111
with:
1212
ref: ${{ github.event.release.tag_name }}
1313
- name: Set up Python
14-
uses: actions/setup-python@v2
14+
uses: actions/setup-python@v4
15+
with:
16+
python-version: "3.x"
17+
check-latest: true
1518
- name: Install build dependencies
1619
run: pip install -U setuptools wheel build
1720
- name: Build

0 commit comments

Comments
 (0)