Skip to content

Releases: actions/setup-python

v4.6.1

24 May 14:12
bd6b4b6
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v4...v4.6.1

Add allow-prereleases input

20 Apr 12:36
57ded4d
Compare
Choose a tag to compare

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:

  • Fix bug to trim new line for PyPy version: #610
  • Added pip dependency file to generate hash from it: #604
  • Improved error handling for saving and restoring cache: #618
  • Add warning if cache paths are empty: #642

Update actions/core to 1.10.0 for v3

27 Mar 11:26
48e4ac7
Compare
Choose a tag to compare

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

27 Mar 11:16
0f07f7f
Compare
Choose a tag to compare

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

12 Jan 11:29
d27e3f3
Compare
Choose a tag to compare

In scope of this release we fixed cache issue for Poetry projects located in subfolders (#446). Besides that we updated json5 version from 2.2.0 to 2.2.3 (#579).

Add support to install multiple python versions

22 Dec 12:48
5ccb29d
Compare
Choose a tag to compare

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

08 Dec 12:23
2c3dd9e
Compare
Choose a tag to compare

In scope of this release we added improved error message to put operating system and its version in the logs (#559). Besides, the release

Update actions/core to 1.10.0 for v2

17 Nov 16:05
75f3110
Compare
Choose a tag to compare

In scope of this release we update actions/core to 1.10.0 for v2 major tag: #533.

v4.3.0

10 Oct 11:36
13ae5bb
Compare
Choose a tag to compare
  • Update @actions/core to 1.10.0 version #517
  • Update @actions/cache to 3.0.4 version #499
  • Only use github.token on github.com #443
  • Improvement of documentation #477 #479 #491 #492

Add check-latest input and bug fixes

02 Aug 12:44
b55428b
Compare
Choose a tag to compare

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

  • Resolved logs for python-version and file inputs: #465
  • Added linux os release info to primary key: #467
  • Added fix to change Python versions for poetry: #445
  • Fix Tool Path handling for self-hosted runners: #466