Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7bc6abb

Browse filesBrowse files
authored
advanced-usage.md: Encourage the use actions/checkout@v4 (actions#729)
1 parent e8111ce commit 7bc6abb
Copy full SHA for 7bc6abb

File tree

Expand file treeCollapse file tree

1 file changed

+30
-30
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+30
-30
lines changed

‎docs/advanced-usage.md

Copy file name to clipboardExpand all lines: docs/advanced-usage.md
+30-30Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ If there is a specific version of Python that you need and you don't want to wor
3030

3131
```yaml
3232
steps:
33-
- uses: actions/checkout@v3
33+
- uses: actions/checkout@v4
3434
- uses: actions/setup-python@v4
3535
with:
3636
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
4444
4545
```yaml
4646
steps:
47-
- uses: actions/checkout@v3
47+
- uses: actions/checkout@v4
4848
- uses: actions/setup-python@v4
4949
with:
5050
python-version: '3.7'
@@ -58,7 +58,7 @@ You can specify the version with **prerelease tag** to download and set up an ac
5858
5959
```yaml
6060
steps:
61-
- uses: actions/checkout@v3
61+
- uses: actions/checkout@v4
6262
- uses: actions/setup-python@v4
6363
with:
6464
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
6969
7070
```yaml
7171
steps:
72-
- uses: actions/checkout@v3
72+
- uses: actions/checkout@v4
7373
- uses: actions/setup-python@v4
7474
with:
7575
python-version: '3.12-dev'
@@ -82,7 +82,7 @@ You can also use several types of ranges that are specified in [semver](https://
8282
8383
```yaml
8484
steps:
85-
- uses: actions/checkout@v3
85+
- uses: actions/checkout@v4
8686
- uses: actions/setup-python@v4
8787
with:
8888
python-version: '>=3.9 <3.10'
@@ -93,7 +93,7 @@ steps:
9393
9494
```yaml
9595
steps:
96-
- uses: actions/checkout@v3
96+
- uses: actions/checkout@v4
9797
- uses: actions/setup-python@v4
9898
with:
9999
python-version: '3.12.0-alpha - 3.12.0'
@@ -104,7 +104,7 @@ steps:
104104
105105
```yaml
106106
steps:
107-
- uses: actions/checkout@v3
107+
- uses: actions/checkout@v4
108108
- uses: actions/setup-python@v4
109109
with:
110110
python-version: '3.x'
@@ -117,7 +117,7 @@ The version of PyPy should be specified in the format `pypy<python_version>[-v<p
117117
The `-v<pypy_version>` parameter is optional and can be skipped. The latest PyPy version will be used in this case.
118118

119119
```
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
121121
pypy2.7 or pypy-2.7 # the latest available version of PyPy that supports Python 2.7
122122
pypy3.7-v7.3.3 or pypy-3.7-v7.3.3 # Python 3.7 and PyPy 7.3.3
123123
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:
137137
- 'pypy3.7' # the latest available version of PyPy that supports Python 3.7
138138
- 'pypy3.7-v7.3.3' # Python 3.7 and PyPy 7.3.3
139139
steps:
140-
- uses: actions/checkout@v3
140+
- uses: actions/checkout@v4
141141
- uses: actions/setup-python@v4
142142
with:
143143
python-version: ${{ matrix.python-version }}
@@ -155,7 +155,7 @@ jobs:
155155
build:
156156
runs-on: ubuntu-latest
157157
steps:
158-
- uses: actions/checkout@v3
158+
- uses: actions/checkout@v4
159159
- uses: actions/setup-python@v4
160160
with:
161161
python-version: |
@@ -172,7 +172,7 @@ jobs:
172172
build:
173173
runs-on: ubuntu-latest
174174
steps:
175-
- uses: actions/checkout@v3
175+
- uses: actions/checkout@v4
176176
- uses: actions/setup-python@v4
177177
with:
178178
python-version: |
@@ -189,7 +189,7 @@ jobs:
189189
build:
190190
runs-on: ubuntu-latest
191191
steps:
192-
- uses: actions/checkout@v3
192+
- uses: actions/checkout@v4
193193
- uses: actions/setup-python@v4
194194
with:
195195
python-version: |
@@ -211,10 +211,10 @@ jobs:
211211
runs-on: ubuntu-latest
212212
strategy:
213213
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' ]
215215
name: Python ${{ matrix.python-version }} sample
216216
steps:
217-
- uses: actions/checkout@v3
217+
- uses: actions/checkout@v4
218218
- name: Set up Python
219219
uses: actions/setup-python@v4
220220
with:
@@ -232,14 +232,14 @@ jobs:
232232
strategy:
233233
matrix:
234234
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']
236236
exclude:
237237
- os: macos-latest
238238
python-version: '3.8'
239239
- os: windows-latest
240240
python-version: '3.6'
241241
steps:
242-
- uses: actions/checkout@v3
242+
- uses: actions/checkout@v4
243243
- name: Set up Python
244244
uses: actions/setup-python@v4
245245
with:
@@ -256,7 +256,7 @@ jobs:
256256

257257
```yaml
258258
steps:
259-
- uses: actions/checkout@v3
259+
- uses: actions/checkout@v4
260260
- uses: actions/setup-python@v4
261261
with:
262262
python-version-file: '.python-version' # Read python version from a file .python-version
@@ -265,7 +265,7 @@ steps:
265265

266266
```yaml
267267
steps:
268-
- uses: actions/checkout@v3
268+
- uses: actions/checkout@v4
269269
- uses: actions/setup-python@v4
270270
with:
271271
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
280280

281281
```yaml
282282
steps:
283-
- uses: actions/checkout@v3
283+
- uses: actions/checkout@v4
284284
- uses: actions/setup-python@v4
285285
with:
286286
python-version: '3.7'
@@ -295,7 +295,7 @@ steps:
295295
**Caching pipenv dependencies:**
296296
```yaml
297297
steps:
298-
- uses: actions/checkout@v3
298+
- uses: actions/checkout@v4
299299
- uses: actions/setup-python@v4
300300
with:
301301
python-version: '3.9'
@@ -308,7 +308,7 @@ steps:
308308
**Caching poetry dependencies:**
309309
```yaml
310310
steps:
311-
- uses: actions/checkout@v3
311+
- uses: actions/checkout@v4
312312
- name: Install poetry
313313
run: pipx install poetry
314314
- uses: actions/setup-python@v4
@@ -322,7 +322,7 @@ steps:
322322
**Using a list of file paths to cache dependencies**
323323
```yaml
324324
steps:
325-
- uses: actions/checkout@v3
325+
- uses: actions/checkout@v4
326326
- uses: actions/setup-python@v4
327327
with:
328328
python-version: '3.9'
@@ -337,7 +337,7 @@ steps:
337337
**Using wildcard patterns to cache dependencies**
338338
```yaml
339339
steps:
340-
- uses: actions/checkout@v3
340+
- uses: actions/checkout@v4
341341
- uses: actions/setup-python@v4
342342
with:
343343
python-version: '3.9'
@@ -349,7 +349,7 @@ steps:
349349
**Using a list of wildcard patterns to cache dependencies**
350350
```yaml
351351
steps:
352-
- uses: actions/checkout@v3
352+
- uses: actions/checkout@v4
353353
- uses: actions/setup-python@v4
354354
with:
355355
python-version: '3.10'
@@ -364,7 +364,7 @@ steps:
364364

365365
```yaml
366366
steps:
367-
- uses: actions/checkout@v3
367+
- uses: actions/checkout@v4
368368
- uses: actions/setup-python@v4
369369
with:
370370
python-version: '3.11'
@@ -387,7 +387,7 @@ jobs:
387387
build:
388388
runs-on: ubuntu-latest
389389
steps:
390-
- uses: actions/checkout@v3
390+
- uses: actions/checkout@v4
391391
- uses: actions/setup-python@v4
392392
id: cp310
393393
with:
@@ -404,7 +404,7 @@ jobs:
404404
build:
405405
runs-on: ubuntu-latest
406406
steps:
407-
- uses: actions/checkout@v3
407+
- uses: actions/checkout@v4
408408
- uses: actions/setup-python@v4
409409
id: cp310
410410
with:
@@ -420,7 +420,7 @@ jobs:
420420
build:
421421
runs-on: ubuntu-latest
422422
steps:
423-
- uses: actions/checkout@v3
423+
- uses: actions/checkout@v4
424424
- uses: actions/setup-python@v4
425425
id: cp310
426426
with:
@@ -451,7 +451,7 @@ Such a requirement on side-effect could be because you don't want your composite
451451

452452
```yaml
453453
steps:
454-
- uses: actions/checkout@v3
454+
- uses: actions/checkout@v4
455455
- uses: actions/setup-python@v4
456456
id: cp310
457457
with:
@@ -611,7 +611,7 @@ jobs:
611611
python_version: ["3.11", "3.12"]
612612
613613
steps:
614-
- uses: actions/checkout@v3
614+
- uses: actions/checkout@v4
615615
- uses: actions/setup-python@v4
616616
with:
617617
python-version: "${{ matrix.python_version }}"

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.