Skip to content

Commit e9d6f99

Browse files
authored
Replace setup-python@v4 by setup-python@v5 in README (#776)
1 parent 0a5c615 commit e9d6f99

File tree

2 files changed

+32
-32
lines changed

2 files changed

+32
-32
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ See [action.yml](action.yml)
1919
```yaml
2020
steps:
2121
- uses: actions/checkout@v4
22-
- uses: actions/setup-python@v4
22+
- uses: actions/setup-python@v5
2323
with:
2424
python-version: '3.10'
2525
- run: python my_script.py
@@ -29,7 +29,7 @@ steps:
2929
```yaml
3030
steps:
3131
- uses: actions/checkout@v4
32-
- uses: actions/setup-python@v4
32+
- uses: actions/setup-python@v5
3333
with:
3434
python-version: 'pypy3.9'
3535
- run: python my_script.py
@@ -39,7 +39,7 @@ steps:
3939
```yaml
4040
steps:
4141
- uses: actions/checkout@v4
42-
- uses: actions/setup-python@v4
42+
- uses: actions/setup-python@v5
4343
with:
4444
python-version: 'graalpy-22.3'
4545
- run: python my_script.py
@@ -74,7 +74,7 @@ The action defaults to searching for a dependency file (`requirements.txt` or `p
7474
```yaml
7575
steps:
7676
- uses: actions/checkout@v4
77-
- uses: actions/setup-python@v4
77+
- uses: actions/setup-python@v5
7878
with:
7979
python-version: '3.9'
8080
cache: 'pip' # caching pip dependencies

docs/advanced-usage.md

+28-28
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ If there is a specific version of Python that you need and you don't want to wor
3232
```yaml
3333
steps:
3434
- uses: actions/checkout@v4
35-
- uses: actions/setup-python@v4
35+
- uses: actions/setup-python@v5
3636
with:
3737
python-version: '3.7.5'
3838
- run: python my_script.py
@@ -46,7 +46,7 @@ You can specify **only a major and minor version** if you are okay with the most
4646
```yaml
4747
steps:
4848
- uses: actions/checkout@v4
49-
- uses: actions/setup-python@v4
49+
- uses: actions/setup-python@v5
5050
with:
5151
python-version: '3.7'
5252
- run: python my_script.py
@@ -60,7 +60,7 @@ You can specify the version with **prerelease tag** to download and set up an ac
6060
```yaml
6161
steps:
6262
- uses: actions/checkout@v4
63-
- uses: actions/setup-python@v4
63+
- uses: actions/setup-python@v5
6464
with:
6565
python-version: '3.12.0-alpha.1'
6666
- run: python my_script.py
@@ -71,7 +71,7 @@ It's also possible to use **x.y-dev syntax** to download and set up the latest p
7171
```yaml
7272
steps:
7373
- uses: actions/checkout@v4
74-
- uses: actions/setup-python@v4
74+
- uses: actions/setup-python@v5
7575
with:
7676
python-version: '3.12-dev'
7777
- run: python my_script.py
@@ -84,7 +84,7 @@ You can also use several types of ranges that are specified in [semver](https://
8484
```yaml
8585
steps:
8686
- uses: actions/checkout@v4
87-
- uses: actions/setup-python@v4
87+
- uses: actions/setup-python@v5
8888
with:
8989
python-version: '>=3.9 <3.10'
9090
- run: python my_script.py
@@ -95,7 +95,7 @@ steps:
9595
```yaml
9696
steps:
9797
- uses: actions/checkout@v4
98-
- uses: actions/setup-python@v4
98+
- uses: actions/setup-python@v5
9999
with:
100100
python-version: '3.12.0-alpha - 3.12.0'
101101
- run: python my_script.py
@@ -106,7 +106,7 @@ steps:
106106
```yaml
107107
steps:
108108
- uses: actions/checkout@v4
109-
- uses: actions/setup-python@v4
109+
- uses: actions/setup-python@v5
110110
with:
111111
python-version: '3.x'
112112
- run: python my_script.py
@@ -139,7 +139,7 @@ jobs:
139139
- 'pypy3.7-v7.3.3' # Python 3.7 and PyPy 7.3.3
140140
steps:
141141
- uses: actions/checkout@v4
142-
- uses: actions/setup-python@v4
142+
- uses: actions/setup-python@v5
143143
with:
144144
python-version: ${{ matrix.python-version }}
145145
- run: python my_script.py
@@ -157,7 +157,7 @@ jobs:
157157
runs-on: ubuntu-latest
158158
steps:
159159
- uses: actions/checkout@v4
160-
- uses: actions/setup-python@v4
160+
- uses: actions/setup-python@v5
161161
with:
162162
python-version: |
163163
3.8
@@ -174,7 +174,7 @@ jobs:
174174
runs-on: ubuntu-latest
175175
steps:
176176
- uses: actions/checkout@v4
177-
- uses: actions/setup-python@v4
177+
- uses: actions/setup-python@v5
178178
with:
179179
python-version: |
180180
pypy-3.7-v7.3.x
@@ -191,7 +191,7 @@ jobs:
191191
runs-on: ubuntu-latest
192192
steps:
193193
- uses: actions/checkout@v4
194-
- uses: actions/setup-python@v4
194+
- uses: actions/setup-python@v5
195195
with:
196196
python-version: |
197197
3.8
@@ -217,7 +217,7 @@ jobs:
217217
steps:
218218
- uses: actions/checkout@v4
219219
- name: Set up Python
220-
uses: actions/setup-python@v4
220+
uses: actions/setup-python@v5
221221
with:
222222
python-version: ${{ matrix.python-version }}
223223
architecture: x64
@@ -242,7 +242,7 @@ jobs:
242242
steps:
243243
- uses: actions/checkout@v4
244244
- name: Set up Python
245-
uses: actions/setup-python@v4
245+
uses: actions/setup-python@v5
246246
with:
247247
python-version: ${{ matrix.python-version }}
248248
- name: Display Python version
@@ -258,7 +258,7 @@ jobs:
258258
```yaml
259259
steps:
260260
- uses: actions/checkout@v4
261-
- uses: actions/setup-python@v4
261+
- uses: actions/setup-python@v5
262262
with:
263263
python-version-file: '.python-version' # Read python version from a file .python-version
264264
- run: python my_script.py
@@ -267,7 +267,7 @@ steps:
267267
```yaml
268268
steps:
269269
- uses: actions/checkout@v4
270-
- uses: actions/setup-python@v4
270+
- uses: actions/setup-python@v5
271271
with:
272272
python-version-file: 'pyproject.toml' # Read python version from a file pyproject.toml
273273
- run: python my_script.py
@@ -282,7 +282,7 @@ If `check-latest` is set to `true`, the action first checks if the cached versio
282282
```yaml
283283
steps:
284284
- uses: actions/checkout@v4
285-
- uses: actions/setup-python@v4
285+
- uses: actions/setup-python@v5
286286
with:
287287
python-version: '3.7'
288288
check-latest: true
@@ -297,7 +297,7 @@ steps:
297297
```yaml
298298
steps:
299299
- uses: actions/checkout@v4
300-
- uses: actions/setup-python@v4
300+
- uses: actions/setup-python@v5
301301
with:
302302
python-version: '3.9'
303303
cache: 'pipenv'
@@ -312,7 +312,7 @@ steps:
312312
- uses: actions/checkout@v4
313313
- name: Install poetry
314314
run: pipx install poetry
315-
- uses: actions/setup-python@v4
315+
- uses: actions/setup-python@v5
316316
with:
317317
python-version: '3.9'
318318
cache: 'poetry'
@@ -324,7 +324,7 @@ steps:
324324
```yaml
325325
steps:
326326
- uses: actions/checkout@v4
327-
- uses: actions/setup-python@v4
327+
- uses: actions/setup-python@v5
328328
with:
329329
python-version: '3.9'
330330
cache: 'pipenv'
@@ -339,7 +339,7 @@ steps:
339339
```yaml
340340
steps:
341341
- uses: actions/checkout@v4
342-
- uses: actions/setup-python@v4
342+
- uses: actions/setup-python@v5
343343
with:
344344
python-version: '3.9'
345345
cache: 'pip'
@@ -351,7 +351,7 @@ steps:
351351
```yaml
352352
steps:
353353
- uses: actions/checkout@v4
354-
- uses: actions/setup-python@v4
354+
- uses: actions/setup-python@v5
355355
with:
356356
python-version: '3.10'
357357
cache: 'pip'
@@ -366,7 +366,7 @@ steps:
366366
```yaml
367367
steps:
368368
- uses: actions/checkout@v4
369-
- uses: actions/setup-python@v4
369+
- uses: actions/setup-python@v5
370370
with:
371371
python-version: '3.11'
372372
cache: 'pip'
@@ -389,7 +389,7 @@ jobs:
389389
runs-on: ubuntu-latest
390390
steps:
391391
- uses: actions/checkout@v4
392-
- uses: actions/setup-python@v4
392+
- uses: actions/setup-python@v5
393393
id: cp310
394394
with:
395395
python-version: "3.8.0 - 3.10.0"
@@ -406,7 +406,7 @@ jobs:
406406
runs-on: ubuntu-latest
407407
steps:
408408
- uses: actions/checkout@v4
409-
- uses: actions/setup-python@v4
409+
- uses: actions/setup-python@v5
410410
id: cp310
411411
with:
412412
python-version: "3.10"
@@ -422,7 +422,7 @@ jobs:
422422
runs-on: ubuntu-latest
423423
steps:
424424
- uses: actions/checkout@v4
425-
- uses: actions/setup-python@v4
425+
- uses: actions/setup-python@v5
426426
id: cp310
427427
with:
428428
python-version: "3.8.0"
@@ -453,7 +453,7 @@ Such a requirement on side-effect could be because you don't want your composite
453453
```yaml
454454
steps:
455455
- uses: actions/checkout@v4
456-
- uses: actions/setup-python@v4
456+
- uses: actions/setup-python@v5
457457
id: cp310
458458
with:
459459
python-version: '3.10'
@@ -586,7 +586,7 @@ Here are the steps you need to follow to avoid the rate limit:
586586

587587
```yml
588588
- name: Set up Python
589-
uses: actions/setup-python@v4
589+
uses: actions/setup-python@v5
590590
with:
591591
python-version: 3.8
592592
token: ${{ secrets.GH_GITHUB_COM_TOKEN }}
@@ -618,7 +618,7 @@ jobs:
618618
619619
steps:
620620
- uses: actions/checkout@v4
621-
- uses: actions/setup-python@v4
621+
- uses: actions/setup-python@v5
622622
with:
623623
python-version: "${{ matrix.python_version }}"
624624
allow-prereleases: true

0 commit comments

Comments
 (0)