mirror of https://github.com/actions/setup-python
Improve readme for 3.x and 3.11-dev style python-version (#441)
This commit is contained in:
parent
0ad0f6a0a5
commit
c4e89fac7e
20
README.md
20
README.md
|
@ -127,6 +127,26 @@ steps:
|
||||||
- run: python my_script.py
|
- run: python my_script.py
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Download and set up the latest patch version of Python (for specified major & minor versions):
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: '3.11-dev'
|
||||||
|
- run: python my_script.py
|
||||||
|
```
|
||||||
|
|
||||||
|
Download and set up the latest stable version of Python (for specified major version):
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: '3.x'
|
||||||
|
- run: python my_script.py
|
||||||
|
```
|
||||||
|
|
||||||
Download and set up PyPy:
|
Download and set up PyPy:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
Loading…
Reference in New Issue