Skip to content

Releases: actions/setup-python

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

v4.1.0

11 Jul 14:03
c4e89fa
Compare
Choose a tag to compare

In scope of this pull request we updated actions/cache package as the new version contains fixes for caching error handling. Moreover, we added a new input update-environment. This option allows to specify if the action shall update environment variables (default) or not.

Update-environment input

    - name: setup-python 3.9
      uses: actions/setup-python@v4
      with:
        python-version: 3.9
        update-environment: false

Besides, we added such changes as:

  • Allow python-version-file to be a relative path: #431
  • Added new environment variables for Cmake: #440
  • Updated error message for resolveVersion: #450
  • Assign default value of AGENT_TOOLSDIRECTORY if not set: #394

v4.0.0

08 Jun 14:24
d09bd5e
Compare
Choose a tag to compare

What's Changed

  • Support for python-version-file input: #336

Example of usage:

- uses: actions/setup-python@v4
  with:
    python-version-file: '.python-version' # Read python version from a file
- run: python my_script.py

There is no default python version for this setup-python major version, the action requires to specify either python-version input or python-version-file input. If the python-version input is not specified the action will try to read required version from file from python-version-file input.

  • Use pypyX.Y for PyPy python-version input: #349

Example of usage:

- uses: actions/setup-python@v4
  with:
    python-version: 'pypy3.9' # pypy-X.Y kept for backward compatibility
- run: python my_script.py
  • RUNNER_TOOL_CACHE environment variable is equal AGENT_TOOLSDIRECTORY: #338

  • Bugfix: create missing pypyX.Y symlinks: #347

  • PKG_CONFIG_PATH environment variable: #400

  • Added python-path output: #405
    python-path output contains Python executable path.

  • Updated zeit/ncc to vercel/ncc package: #393

  • Bugfix: fixed output for prerelease version of poetry: #409

  • Made pythonLocation environment variable consistent for Python and PyPy: #418

  • Bugfix for 3.x-dev syntax: #417

  • Other improvements: #318 #396 #384 #387 #388

Update actions/cache version to 2.0.2

11 Apr 14:01
98f2ad0
Compare
Choose a tag to compare

In scope of this release we updated actions/cache package as the new version contains fixes related to GHES 3.5 (#382)