8000 Merge pull request #356 from cclauss/patch-2 · Ditto190/Github-setup-python@792c23f · GitHub
[go: up one dir, main page]

Skip to content
< 8000 header class="HeaderMktg header-logged-out js-details-container js-header Details f4 py-3" role="banner" data-is-top="true" data-color-mode=light data-light-theme=light data-dark-theme=dark>

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 792c23f

Browse files
authored
Merge pull request actions#356 from cclauss/patch-2
README.md: Upgrade to v3
2 parents 0ebf233 + 8c1441c commit 792c23f

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

README.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# setup-python V2
1+
# setup-python V3
22

33
<p align="left">
44
<a href="https://github.com/actions/setup-python"><img alt="GitHub Actions status" src="https://github.com/actions/setup-python/workflows/Main%20workflow/badge.svg"></a>
@@ -28,8 +28,8 @@ See [action.yml](action.yml)
2828
Basic:
2929
```yaml
3030
steps:
31-
- uses: actions/checkout@v2
32-
- uses: actions/setup-python@v2
31+
- uses: actions/checkout@v3
32+
- uses: actions/setup-python@v3
3333
with:
3434
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
3535
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
@@ -46,9 +46,9 @@ jobs:
4646
python-version: [ '2.x', '3.x', 'pypy-2.7', 'pypy-3.7', 'pypy-3.8' ]
4747
name: Python ${{ matrix.python-version }} sample
4848
steps:
49-
- uses: actions/checkout@v2
49+
- uses: actions/checkout@v3
5050
- name: Set up Python
51-
uses: actions/setup-python@v2
51+
uses: actions/setup-python@v3
5252
with:
5353
python-version: ${{ matrix.python-version }}
5454
architecture: x64
@@ -70,9 +70,9 @@ jobs:
7070
- os: windows-latest
7171
python-version: '3.6'
7272
steps:
73-
- uses: actions/checkout@v2
73+
- uses: actions/checkout@v3
7474
- name: Set up Python
75-
uses: actions/setup-python@v2
75+
uses: actions/setup-python@v3
7676
with:
7777
python-version: ${{ matrix.python-version }}
7878
- name: Display Python version
@@ -89,8 +89,8 @@ jobs:
8989
# in this example, there is a newer version already installed, 3.7.7, so the older version will be downloaded
9090
python-version: ['3.7.4', '3.8', '3.9', '3.10']
9191
steps:
92-
- uses: actions/checkout@v2
93-
- uses: actions/setup-python@v2
92+
- uses: actions/checkout@v3
93+
- uses: actions/setup-python@v3
9494
with:
9595
python-version: ${{ matrix.python-version }}
9696
- run: python my_script.py
@@ -99,8 +99,8 @@ jobs:
9999
Download and set up an accurate pre-release version of Python:
100100
```yaml
101101
steps:
102-
- uses: actions/checkout@v2
103-
- uses: actions/setup-python@v2
102+
- uses: actions/checkout@v3
103+
- uses: actions/setup-python@v3
104104
with:
105105
python-version: '3.11.0-alpha.1'
106106
- run: python my_script.py
@@ -109,8 +109,8 @@ steps:
109109
Download and set up the latest available version of Python (includes both pre-release and stable versions):
110110
```yaml
111111
steps:
112-
- uses: actions/checkout@v2
113-
- uses: actions/setup-python@v2
112+
- uses: actions/checkout@v3
113+
- uses: actions/setup-python@v3
114114
with:
115115
python-version: '3.11.0-alpha - 3.11.0' # SemVer's version range syntax
116116
- run: python my_script.py
@@ -129,8 +129,8 @@ jobs:
129129
- 'pypy-3.7-v7.3.3' # Python 3.7 and PyPy 7.3.3
130130
- 'pypy-3.8' # the latest available version of PyPy that supports Python 3.8
131131
steps:
132-
- uses: actions/checkout@v2
133-
- uses: actions/setup-python@v2
132+
- uses: actions/checkout@v3
133+
- uses: actions/setup-python@v3
134134
with:
135135
python-version: ${{ matrix.python-version }}
136136
- run: python my_script.py
@@ -224,8 +224,8 @@ The requirements file format allows to specify dependency versions using logical
224224
225225
```yaml
226226
steps:
227-
- uses: actions/checkout@v2
228-
- uses: actions/setup-python@v2
227+
- uses: actions/checkout@v3
228+
- uses: actions/setup-python@v3
229229
with:
230230
python-version: '3.9'
231231
cache: 'pip'
@@ -235,10 +235,10 @@ steps:
235235
**Caching pipenv dependencies:**
236236
```yaml
237237
steps:
238-
- uses: actions/checkout@v2
238+
- uses: actions/checkout@v3
239239
- name: Install pipenv
240240
run: pipx install pipenv
241-
- uses: actions/setup-python@v2
241+
- uses: actions/setup-python@v3
242242
with:
243243
python-version: '3.9'
244244
cache: 'pipenv'
@@ -248,8 +248,8 @@ steps:
248248
**Using wildcard patterns to cache dependencies**
249249
```yaml
250250
steps:
251-
- uses: actions/checkout@v2
252-
- uses: actions/setup-python@v2
251+
- uses: actions/checkout@v3
252+
- uses: actions/setup-python@v3
253253
with:
254254
python-version: '3.9'
255255
cache: 'pip'
@@ -260,10 +260,10 @@ steps:
260260
**Using a list of file paths to cache dependencies**
261261
```yaml
262262
steps:
263-
- uses: actions/checkout@v2
263+
- uses: actions/checkout@v3
264264
- name: Install pipenv
265265
run: pipx install pipenv
266-
- uses: actions/setup-python@v2
266+
- uses: actions/setup-python@v3
267267
with:
268268
python-version: '3.9'
269269
cache: 'pipenv'

0 commit comments

Comments
 (0)
< 2B1D /div>
0