Skip to content

chore(deps): update actions/setup-python action to v4 #237

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

renovate-bot
Copy link
Contributor

@renovate-bot renovate-bot commented May 1, 2023

Mend Renovate

This PR contains the following updates:

Package Type Update Change
actions/setup-python action major v2.3.3 -> v4.6.1

Release Notes

actions/setup-python

v4.6.1

Compare Source

What's Changed
New Contributors

Full Changelog: actions/setup-python@v4...v4.6.1

v4.6.0: Add allow-prereleases input

Compare Source

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:

v4.5.0: Fix cache issue for Poetry projects located in subfolders

Compare Source

In scope of this release we fixed cache issue for Poetry projects located in subfolders (https://github.com/actions/setup-python/issues/446). Besides that we updated json5 version from 2.2.0 to 2.2.3 (https://github.com/actions/setup-python/pull/579).

v4.4.0: Add support to install multiple python versions

Compare Source

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 (https://github.com/actions/setup-python/pull/566).

v4.3.1: Improve error handling and messages

Compare Source

In scope of this release we added improved error message to put operating system and its version in the logs (https://github.com/actions/setup-python/pull/559). Besides, the release

v4.3.0

Compare Source

v4.2.0: Add check-latest input and bug fixes

Compare Source

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

v4.1.0

Compare Source

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:

v4.0.0

Compare Source

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

v3.1.3: Update actions/core to 1.10.0 for v3

Compare Source

In scope of this release we update actions/core to 1.10.0 for v3 major tag: https://github.com/actions/setup-python/pull/624

v3.1.2: Update actions/cache version to 2.0.2

Compare Source

In scope of this release we updated actions/cache package as the new version contains fixes related to GHES 3.5 (https://github.com/actions/setup-python/pull/382)

v3.1.1: Add "cache-hit" output and fix "python-version" output for PyPy

Compare Source

This release introduces new output cache-hit (https://github.com/actions/setup-python/pull/373) and fix python-version output for PyPy (https://github.com/actions/setup-python/pull/365)

The cache-hit output contains boolean value indicating that an exact match was found for the key. It shows that the action uses already existing cache or not. The output is available only if cache is enabled.

The python-version contains version of Python or PyPy.

v3.1.0: Support caching poetry dependencies and caching on GHES 3.5

Compare Source

steps:
- uses: actions/checkout@v3
- name: Install poetry
  run: pipx install poetry
- uses: actions/setup-python@v3
  with:
    python-version: '3.9'
    cache: 'poetry'
- run: poetry install
- run: poetry run pytest

v3.0.0

Compare Source

What's Changed
Breaking Changes

With the update to Node 16, all scripts will now be run with Node 16 rather than Node 12.

This new major release removes support of legacy pypy2 and pypy3 keywords. Please use more specific and flexible syntax to specify a PyPy version:

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version:
        - 'pypy-2.7' # the latest available version of PyPy that supports Python 2.7
        - 'pypy-3.8' # the latest available version of PyPy that supports Python 3.8
        - 'pypy-3.8-v7.3.8' # Python 3.8 and PyPy 7.3.8
    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-python@v3
      with:
        python-version: ${{ matrix.python-version }}

See more usage examples in the documentation


Configuration

📅 Schedule: Branch creation - "before 3am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate-bot renovate-bot force-pushed the renovate/actions-setup-python-4.x branch from 219ddff to e0a0c24 Compare May 9, 2023 18:38
@renovate-bot renovate-bot force-pushed the renovate/actions-setup-python-4.x branch 6 times, most recently from bc6ecf8 to 01ba3e6 Compare May 24, 2023 18:43
@renovate-bot renovate-bot force-pushed the renovate/actions-setup-python-4.x branch from 01ba3e6 to 0569e45 Compare May 24, 2023 20:11
@kenneth-rosario kenneth-rosario merged commit dded5ae into GoogleCloudPlatform:master May 24, 2023
@renovate-bot renovate-bot deleted the renovate/actions-setup-python-4.x branch May 24, 2023 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants