@@ -30,7 +30,7 @@ If there is a specific version of Python that you need and you don't want to wor
30
30
31
31
``` yaml
32
32
steps :
33
- - uses : actions/checkout@v3
33
+ - uses : actions/checkout@v4
34
34
- uses : actions/setup-python@v4
35
35
with :
36
36
python-version : ' 3.7.5'
@@ -44,7 +44,7 @@ You can specify **only a major and minor version** if you are okay with the most
44
44
45
45
` ` ` yaml
46
46
steps :
47
- - uses : actions/checkout@v3
47
+ - uses : actions/checkout@v4
48
48
- uses : actions/setup-python@v4
49
49
with :
50
50
python-version : ' 3.7'
@@ -58,7 +58,7 @@ You can specify the version with **prerelease tag** to download and set up an ac
58
58
59
59
` ` ` yaml
60
60
steps :
61
- - uses : actions/checkout@v3
61
+ - uses : actions/checkout@v4
62
62
- uses : actions/setup-python@v4
63
63
with :
64
64
python-version : ' 3.12.0-alpha.1'
@@ -69,7 +69,7 @@ It's also possible to use **x.y-dev syntax** to download and set up the latest p
69
69
70
70
` ` ` yaml
71
71
steps :
72
- - uses : actions/checkout@v3
72
+ - uses : actions/checkout@v4
73
73
- uses : actions/setup-python@v4
74
74
with :
75
75
python-version : ' 3.12-dev'
@@ -82,7 +82,7 @@ You can also use several types of ranges that are specified in [semver](https://
82
82
83
83
` ` ` yaml
84
84
steps :
85
- - uses : actions/checkout@v3
85
+ - uses : actions/checkout@v4
86
86
- uses : actions/setup-python@v4
87
87
with :
88
88
python-version : ' >=3.9 <3.10'
93
93
94
94
` ` ` yaml
95
95
steps :
96
- - uses : actions/checkout@v3
96
+ - uses : actions/checkout@v4
97
97
- uses : actions/setup-python@v4
98
98
with :
99
99
python-version : ' 3.12.0-alpha - 3.12.0'
@@ -104,7 +104,7 @@ steps:
104
104
105
105
` ` ` yaml
106
106
steps :
107
- - uses : actions/checkout@v3
107
+ - uses : actions/checkout@v4
108
108
- uses : actions/setup-python@v4
109
109
with :
110
110
python-version : ' 3.x'
@@ -117,7 +117,7 @@ The version of PyPy should be specified in the format `pypy<python_version>[-v<p
117
117
The `-v<pypy_version>` parameter is optional and can be skipped. The latest PyPy version will be used in this case.
118
118
119
119
```
120
- pypy3.8 or pypy-3.8 # the latest available version of PyPy that supports Python 3.8
120
+ pypy3.9 or pypy-3.9 # the latest available version of PyPy that supports Python 3.9
121
121
pypy2.7 or pypy-2.7 # the latest available version of PyPy that supports Python 2.7
122
122
pypy3.7-v7.3.3 or pypy-3.7-v7.3.3 # Python 3.7 and PyPy 7.3.3
123
123
pypy3.7-v7.x or pypy-3.7-v7.x # Python 3.7 and the latest available PyPy 7.x
@@ -137,7 +137,7 @@ jobs:
137
137
- 'pypy3.7' # the latest available version of PyPy that supports Python 3.7
138
138
- 'pypy3.7-v7.3.3' # Python 3.7 and PyPy 7.3.3
139
139
steps:
140
- - uses: actions/checkout@v3
140
+ - uses: actions/checkout@v4
141
141
- uses: actions/setup-python@v4
142
142
with:
143
143
python-version: ${{ matrix.python-version }}
@@ -155,7 +155,7 @@ jobs:
155
155
build :
156
156
runs-on : ubuntu-latest
157
157
steps :
158
- - uses : actions/checkout@v3
158
+ - uses : actions/checkout@v4
159
159
- uses : actions/setup-python@v4
160
160
with :
161
161
python-version : |
@@ -172,7 +172,7 @@ jobs:
172
172
build :
173
173
runs-on : ubuntu-latest
174
174
steps :
175
- - uses : actions/checkout@v3
175
+ - uses : actions/checkout@v4
176
176
- uses : actions/setup-python@v4
177
177
with :
178
178
python-version : |
@@ -189,7 +189,7 @@ jobs:
189
189
build :
190
190
runs-on : ubuntu-latest
191
191
steps :
192
- - uses : actions/checkout@v3
192
+ - uses : actions/checkout@v4
193
193
- uses : actions/setup-python@v4
194
194
with :
195
195
python-version : |
@@ -211,10 +211,10 @@ jobs:
211
211
runs-on: ubuntu-latest
212
212
strategy:
213
213
matrix:
214
- python-version: [ '2.x', '3.x', 'pypy2.7', 'pypy3.7 ', 'pypy3.8 ' ]
214
+ python-version: [ '2.x', '3.x', 'pypy2.7', 'pypy3.8 ', 'pypy3.9 ' ]
215
215
name: Python ${{ matrix.python-version }} sample
216
216
steps:
217
- - uses: actions/checkout@v3
217
+ - uses: actions/checkout@v4
218
218
- name: Set up Python
219
219
uses: actions/setup-python@v4
220
220
with:
@@ -232,14 +232,14 @@ jobs:
232
232
strategy:
233
233
matrix:
234
234
os: [ubuntu-latest, macos-latest, windows-latest]
235
- python-version: ['2.7', '3.7', '3.8', '3.9', '3.10', 'pypy2.7', 'pypy3.8 ']
235
+ python-version: ['2.7', '3.7', '3.8', '3.9', '3.10', 'pypy2.7', 'pypy3.9 ']
236
236
exclude:
237
237
- os: macos-latest
238
238
python-version: '3.8'
239
239
- os: windows-latest
240
240
python-version: '3.6'
241
241
steps:
242
- - uses: actions/checkout@v3
242
+ - uses: actions/checkout@v4
243
243
- name: Set up Python
244
244
uses: actions/setup-python@v4
245
245
with:
@@ -256,7 +256,7 @@ jobs:
256
256
257
257
` ` ` yaml
258
258
steps:
259
- - uses: actions/checkout@v3
259
+ - uses: actions/checkout@v4
260
260
- uses: actions/setup-python@v4
261
261
with:
262
262
python-version-file: '.python-version' # Read python version from a file .python-version
@@ -265,7 +265,7 @@ steps:
265
265
266
266
` ` ` yaml
267
267
steps:
268
- - uses: actions/checkout@v3
268
+ - uses: actions/checkout@v4
269
269
- uses: actions/setup-python@v4
270
270
with:
271
271
python-version-file: 'pyproject.toml' # Read python version from a file pyproject.toml
@@ -280,7 +280,7 @@ If `check-latest` is set to `true`, the action first checks if the cached versio
280
280
281
281
` ` ` yaml
282
282
steps:
283
- - uses: actions/checkout@v3
283
+ - uses: actions/checkout@v4
284
284
- uses: actions/setup-python@v4
285
285
with:
286
286
python-version: '3.7'
@@ -295,7 +295,7 @@ steps:
295
295
**Caching pipenv dependencies:**
296
296
` ` ` yaml
297
297
steps:
298
- - uses: actions/checkout@v3
298
+ - uses: actions/checkout@v4
299
299
- uses: actions/setup-python@v4
300
300
with:
301
301
python-version: '3.9'
@@ -308,7 +308,7 @@ steps:
308
308
**Caching poetry dependencies:**
309
309
` ` ` yaml
310
310
steps:
311
- - uses: actions/checkout@v3
311
+ - uses: actions/checkout@v4
312
312
- name: Install poetry
313
313
run: pipx install poetry
314
314
- uses: actions/setup-python@v4
@@ -322,7 +322,7 @@ steps:
322
322
**Using a list of file paths to cache dependencies**
323
323
` ` ` yaml
324
324
steps:
325
- - uses: actions/checkout@v3
325
+ - uses: actions/checkout@v4
326
326
- uses: actions/setup-python@v4
327
327
with:
328
328
python-version: '3.9'
@@ -337,7 +337,7 @@ steps:
337
337
**Using wildcard patterns to cache dependencies**
338
338
` ` ` yaml
339
339
steps:
340
- - uses: actions/checkout@v3
340
+ - uses: actions/checkout@v4
341
341
- uses: actions/setup-python@v4
342
342
with:
343
343
python-version: '3.9'
@@ -349,7 +349,7 @@ steps:
349
349
**Using a list of wildcard patterns to cache dependencies**
350
350
` ` ` yaml
351
351
steps:
352
- - uses: actions/checkout@v3
352
+ - uses: actions/checkout@v4
353
353
- uses: actions/setup-python@v4
354
354
with:
355
355
python-version: '3.10'
@@ -364,7 +364,7 @@ steps:
364
364
365
365
` ` ` yaml
366
366
steps:
367
- - uses: actions/checkout@v3
367
+ - uses: actions/checkout@v4
368
368
- uses: actions/setup-python@v4
369
369
with:
370
370
python-version: '3.11'
@@ -387,7 +387,7 @@ jobs:
387
387
build:
388
388
runs-on: ubuntu-latest
389
389
steps:
390
- - uses: actions/checkout@v3
390
+ - uses: actions/checkout@v4
391
391
- uses: actions/setup-python@v4
392
392
id: cp310
393
393
with:
@@ -404,7 +404,7 @@ jobs:
404
404
build:
405
405
runs-on: ubuntu-latest
406
406
steps:
407
- - uses: actions/checkout@v3
407
+ - uses: actions/checkout@v4
408
408
- uses: actions/setup-python@v4
409
409
id: cp310
410
410
with:
@@ -420,7 +420,7 @@ jobs:
420
420
build:
421
421
runs-on: ubuntu-latest
422
422
steps:
423
- - uses: actions/checkout@v3
423
+ - uses: actions/checkout@v4
424
424
- uses: actions/setup-python@v4
425
425
id: cp310
426
426
with:
@@ -451,7 +451,7 @@ Such a requirement on side-effect could be because you don't want your composite
451
451
452
452
` ` ` yaml
453
453
steps:
454
- - uses: actions/checkout@v3
454
+ - uses: actions/checkout@v4
455
455
- uses: actions/setup-python@v4
456
456
id: cp310
457
457
with:
@@ -611,7 +611,7 @@ jobs:
611
611
python_version: ["3.11", "3.12"]
612
612
613
613
steps:
614
- - uses: actions/checkout@v3
614
+ - uses: actions/checkout@v4
615
615
- uses: actions/setup-python@v4
616
616
with:
617
617
python-version: "${{ matrix.python_version }}"
0 commit comments