mirror of
https://github.com/actions/setup-python.git
synced 2025-07-18 14:38:19 +02:00
feature: add version parsing from Pipfile
This commit is contained in:
parent
532b046aaf
commit
b62f6a8ae7
6 changed files with 300 additions and 3 deletions
|
@ -310,6 +310,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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue