@@ -32,7 +32,7 @@ If there is a specific version of Python that you need and you don't want to wor
32
32
``` yaml
33
33
steps :
34
34
- uses : actions/checkout@v4
35
- - uses : actions/setup-python@v4
35
+ - uses : actions/setup-python@v5
36
36
with :
37
37
python-version : ' 3.7.5'
38
38
- 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
46
46
` ` ` yaml
47
47
steps :
48
48
- uses : actions/checkout@v4
49
- - uses : actions/setup-python@v4
49
+ - uses : actions/setup-python@v5
50
50
with :
51
51
python-version : ' 3.7'
52
52
- run : python my_script.py
@@ -60,7 +60,7 @@ You can specify the version with **prerelease tag** to download and set up an ac
60
60
` ` ` yaml
61
61
steps :
62
62
- uses : actions/checkout@v4
63
- - uses : actions/setup-python@v4
63
+ - uses : actions/setup-python@v5
64
64
with :
65
65
python-version : ' 3.12.0-alpha.1'
66
66
- 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
71
71
` ` ` yaml
72
72
steps :
73
73
- uses : actions/checkout@v4
74
- - uses : actions/setup-python@v4
74
+ - uses : actions/setup-python@v5
75
75
with :
76
76
python-version : ' 3.12-dev'
77
77
- run : python my_script.py
@@ -84,7 +84,7 @@ You can also use several types of ranges that are specified in [semver](https://
84
84
` ` ` yaml
85
85
steps :
86
86
- uses : actions/checkout@v4
87
- - uses : actions/setup-python@v4
87
+ - uses : actions/setup-python@v5
88
88
with :
89
89
python-version : ' >=3.9 <3.10'
90
90
- run : python my_script.py
95
95
` ` ` yaml
96
96
steps :
97
97
- uses : actions/checkout@v4
98
- - uses : actions/setup-python@v4
98
+ - uses : actions/setup-python@v5
99
99
with :
100
100
python-version : ' 3.12.0-alpha - 3.12.0'
101
101
- run : python my_script.py
@@ -106,7 +106,7 @@ steps:
106
106
` ` ` yaml
107
107
steps :
108
108
- uses : actions/checkout@v4
109
- - uses : actions/setup-python@v4
109
+ - uses : actions/setup-python@v5
110
110
with :
111
111
python-version : ' 3.x'
112
112
- run : python my_script.py
@@ -139,7 +139,7 @@ jobs:
139
139
- 'pypy3.7-v7.3.3' # Python 3.7 and PyPy 7.3.3
140
140
steps:
141
141
- uses: actions/checkout@v4
142
- - uses: actions/setup-python@v4
142
+ - uses: actions/setup-python@v5
143
143
with:
144
144
python-version: ${{ matrix.python-version }}
145
145
- run: python my_script.py
@@ -157,7 +157,7 @@ jobs:
157
157
runs-on : ubuntu-latest
158
158
steps :
159
159
- uses : actions/checkout@v4
160
- - uses : actions/setup-python@v4
160
+ - uses : actions/setup-python@v5
161
161
with :
162
162
python-version : |
163
163
3.8
@@ -174,7 +174,7 @@ jobs:
174
174
runs-on : ubuntu-latest
175
175
steps :
176
176
- uses : actions/checkout@v4
177
- - uses : actions/setup-python@v4
177
+ - uses : actions/setup-python@v5
178
178
with :
179
179
python-version : |
180
180
pypy-3.7-v7.3.x
@@ -191,7 +191,7 @@ jobs:
191
191
runs-on : ubuntu-latest
192
192
steps :
193
193
- uses : actions/checkout@v4
194
- - uses : actions/setup-python@v4
194
+ - uses : actions/setup-python@v5
195
195
with :
196
196
python-version : |
197
197
3.8
@@ -217,7 +217,7 @@ jobs:
217
217
steps:
218
218
- uses: actions/checkout@v4
219
219
- name: Set up Python
220
- uses: actions/setup-python@v4
220
+ uses: actions/setup-python@v5
221
221
with:
222
222
python-version: ${{ matrix.python-version }}
223
223
architecture: x64
@@ -242,7 +242,7 @@ jobs:
242
242
steps:
243
243
- uses: actions/checkout@v4
244
244
- name: Set up Python
245
- uses: actions/setup-python@v4
245
+ uses: actions/setup-python@v5
246
246
with:
247
247
python-version: ${{ matrix.python-version }}
248
248
- name: Display Python version
@@ -258,7 +258,7 @@ jobs:
258
258
` ` ` yaml
259
259
steps:
260
260
- uses: actions/checkout@v4
261
- - uses: actions/setup-python@v4
261
+ - uses: actions/setup-python@v5
262
262
with:
263
263
python-version-file: '.python-version' # Read python version from a file .python-version
264
264
- run: python my_script.py
@@ -267,7 +267,7 @@ steps:
267
267
` ` ` yaml
268
268
steps:
269
269
- uses: actions/checkout@v4
270
- - uses: actions/setup-python@v4
270
+ - uses: actions/setup-python@v5
271
271
with:
272
272
python-version-file: 'pyproject.toml' # Read python version from a file pyproject.toml
273
273
- run: python my_script.py
@@ -282,7 +282,7 @@ If `check-latest` is set to `true`, the action first checks if the cached versio
282
282
` ` ` yaml
283
283
steps:
284
284
- uses: actions/checkout@v4
285
- - uses: actions/setup-python@v4
285
+ - uses: actions/setup-python@v5
286
286
with:
287
287
python-version: '3.7'
288
288
check-latest: true
@@ -297,7 +297,7 @@ steps:
297
297
` ` ` yaml
298
298
steps:
299
299
- uses: actions/checkout@v4
300
- - uses: actions/setup-python@v4
300
+ - uses: actions/setup-python@v5
301
301
with:
302
302
python-version: '3.9'
303
303
cache: 'pipenv'
@@ -312,7 +312,7 @@ steps:
312
312
- uses: actions/checkout@v4
313
313
- name: Install poetry
314
314
run: pipx install poetry
315
- - uses: actions/setup-python@v4
315
+ - uses: actions/setup-python@v5
316
316
with:
317
317
python-version: '3.9'
318
318
cache: 'poetry'
@@ -324,7 +324,7 @@ steps:
324
324
` ` ` yaml
325
325
steps:
326
326
- uses: actions/checkout@v4
327
- - uses: actions/setup-python@v4
327
+ - uses: actions/setup-python@v5
328
328
with:
329
329
python-version: '3.9'
330
330
cache: 'pipenv'
@@ -339,7 +339,7 @@ steps:
339
339
` ` ` yaml
340
340
steps:
341
341
- uses: actions/checkout@v4
342
- - uses: actions/setup-python@v4
342
+ - uses: actions/setup-python@v5
343
343
with:
344
344
python-version: '3.9'
345
345
cache: 'pip'
@@ -351,7 +351,7 @@ steps:
351
351
` ` ` yaml
352
352
steps:
353
353
- uses: actions/checkout@v4
354
- - uses: actions/setup-python@v4
354
+ - uses: actions/setup-python@v5
355
355
with:
356
356
python-version: '3.10'
357
357
cache: 'pip'
@@ -366,7 +366,7 @@ steps:
366
366
` ` ` yaml
367
367
steps:
368
368
- uses: actions/checkout@v4
369
- - uses: actions/setup-python@v4
369
+ - uses: actions/setup-python@v5
370
370
with:
371
371
python-version: '3.11'
372
372
cache: 'pip'
@@ -389,7 +389,7 @@ jobs:
389
389
runs-on: ubuntu-latest
390
390
steps:
391
391
- uses: actions/checkout@v4
392
- - uses: actions/setup-python@v4
392
+ - uses: actions/setup-python@v5
393
393
id: cp310
394
394
with:
395
395
python-version: "3.8.0 - 3.10.0"
@@ -406,7 +406,7 @@ jobs:
406
406
runs-on: ubuntu-latest
407
407
steps:
408
408
- uses: actions/checkout@v4
409
- - uses: actions/setup-python@v4
409
+ - uses: actions/setup-python@v5
410
410
id: cp310
411
411
with:
412
412
python-version: "3.10"
@@ -422,7 +422,7 @@ jobs:
422
422
runs-on: ubuntu-latest
423
423
steps:
424
424
- uses: actions/checkout@v4
425
- - uses: actions/setup-python@v4
425
+ - uses: actions/setup-python@v5
426
426
id: cp310
427
427
with:
428
428
python-version: "3.8.0"
@@ -453,7 +453,7 @@ Such a requirement on side-effect could be because you don't want your composite
453
453
` ` ` yaml
454
454
steps:
455
455
- uses: actions/checkout@v4
456
- - uses: actions/setup-python@v4
456
+ - uses: actions/setup-python@v5
457
457
id: cp310
458
458
with:
459
459
python-version: '3.10'
@@ -586,7 +586,7 @@ Here are the steps you need to follow to avoid the rate limit:
586
586
587
587
` ` ` yml
588
588
- name: Set up Python
589
- uses: actions/setup-python@v4
589
+ uses: actions/setup-python@v5
590
590
with:
591
591
python-version: 3.8
592
592
token: ${{ secrets.GH_GITHUB_COM_TOKEN }}
@@ -618,7 +618,7 @@ jobs:
618
618
619
619
steps:
620
620
- uses: actions/checkout@v4
621
- - uses: actions/setup-python@v4
621
+ - uses: actions/setup-python@v5
622
622
with:
623
623
python-version: "${{ matrix.python_version }}"
624
624
allow-prereleases: true
0 commit comments