Releases: actions/setup-python
v4.6.1
What's Changed
- Fix
allow-prereleases
sample configuration by @mayeut in #615 - Fix a incorrect link advanced-usage.md by @siyuan0322 in #657
- Remove implicit dependency by @nikolai-laevskii in #668
- Automatic update of configuration files from 05/23/2023 by @github-actions in #671
- Add warning for python 2.7 on release/v4 by @dmitry-shibanov in #673
New Contributors
- @siyuan0322 made their first contribution in #657
- @nikolai-laevskii made their first contribution in #668
Full Changelog: v4...v4.6.1
Add allow-prereleases input
In scope of this release we added a new input (allow-prereleases
) to allow falling back to pre-release versions of Python when a matching GA version of Python is not available
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.12
allow-prereleases: true
Besides, we added such changes as:
Update actions/core to 1.10.0 for v3
In scope of this release we update actions/core to 1.10.0 for v3 major tag: #624
Update actions/core to 1.10.0 for v1
In scope of this release we update actions/core to 1.10.0 for v1 major tag: #625
Fix cache issue for Poetry projects located in subfolders
Add support to install multiple python versions
In scope of this release we added support to install multiple python versions. For this you can try to use this snippet:
- uses: actions/setup-python@v4
with:
python-version: |
3.8
3.9
3.10
Besides, we changed logic with throwing the error for GHES if cache is unavailable to warn (#566).
Improve error handling and messages
In scope of this release we added improved error message to put operating system and its version in the logs (#559). Besides, the release
- fixes issue about specifying architecture for pypy-nightly on Windows with related pull request.
- improves error handling for Http Errors (#511).
- updates minimatch (#558).
Update actions/core to 1.10.0 for v2
In scope of this release we update actions/core to 1.10.0 for v2 major tag: #533.
v4.3.0
Add check-latest input and bug fixes
In scope of this release we add the check-latest input. If check-latest is set to true, the action first checks if the cached version is the latest one. If the locally cached version is not the most up-to-date, the version will then be downloaded from python-versions repository. By default check-latest is set to false. For PyPy it will to try to reach https://downloads.python.org/pypy/versions.json
Example of usage:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.9'
check-latest: true
- run: python --version
Besides, it includes such changes as