1
0
Fork 0
mirror of https://github.com/actions/setup-python.git synced 2024-12-22 20:32:31 +00:00

Improve readme for 3.x and 3.11-dev style python-version (#441)

This commit is contained in:
James 2022-07-07 22:34:44 +01:00 committed by GitHub
parent 0ad0f6a0a5
commit c4e89fac7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -127,6 +127,26 @@ steps:
- 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:
```yaml