mirror of
https://github.com/actions/setup-python.git
synced 2026-07-18 14:39:58 +08:00
Update GitHub Actions to use checkout and setup-python actions version 7
This commit is contained in:
parent
f8cf4291c8
commit
471663421d
10 changed files with 134 additions and 134 deletions
20
README.md
20
README.md
|
|
@ -29,8 +29,8 @@ See [action.yml](action.yml)
|
|||
**Python**
|
||||
```yaml
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/setup-python@v6
|
||||
- uses: actions/checkout@v7
|
||||
- uses: actions/setup-python@v7
|
||||
with:
|
||||
python-version: '3.13'
|
||||
- run: python my_script.py
|
||||
|
|
@ -39,8 +39,8 @@ steps:
|
|||
**PyPy**
|
||||
```yaml
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/setup-python@v6
|
||||
- uses: actions/checkout@v7
|
||||
- uses: actions/setup-python@v7
|
||||
with:
|
||||
python-version: 'pypy3.10'
|
||||
- run: python my_script.py
|
||||
|
|
@ -49,8 +49,8 @@ steps:
|
|||
**GraalPy**
|
||||
```yaml
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/setup-python@v6
|
||||
- uses: actions/checkout@v7
|
||||
- uses: actions/setup-python@v7
|
||||
with:
|
||||
python-version: 'graalpy-24.0'
|
||||
- run: python my_script.py
|
||||
|
|
@ -59,8 +59,8 @@ steps:
|
|||
**Free threaded Python**
|
||||
```yaml
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/setup-python@v6
|
||||
- uses: actions/checkout@v7
|
||||
- uses: actions/setup-python@v7
|
||||
with:
|
||||
python-version: '3.13t'
|
||||
- run: python my_script.py
|
||||
|
|
@ -94,8 +94,8 @@ The action defaults to searching for a dependency file (`requirements.txt` or `p
|
|||
|
||||
```yaml
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/setup-python@v6
|
||||
- uses: actions/checkout@v7
|
||||
- uses: actions/setup-python@v7
|
||||
with:
|
||||
python-version: '3.13'
|
||||
cache: 'pip' # caching pip dependencies
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue