1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-python synced 2025-06-14 23:14:09 +02:00

feature: add version parsing from Pipfile

This commit is contained in:
Aramís Segovia 2025-03-26 22:46:53 -04:00
parent 5db1cf9a59
commit c44ab2e287
5 changed files with 222 additions and 3 deletions

View file

@ -309,6 +309,15 @@ steps:
- run: python my_script.py
```
```yaml
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version-file: 'Pipfile' # Read python version from a file Pipfile
- run: python my_script.py
```
## Check latest version
The `check-latest` flag defaults to `false`. Use the default or set `check-latest` to `false` if you prefer stability and if you want to ensure a specific `Python or PyPy` version is always used.