Skip to content

Use setup-python just for caching #1175

@cecheta

Description

@cecheta

Description:
It would be good to be able to use this action just to cache dependencies, without also downloading Python. For example:

- uses: actions/setup-python@v5
  with:
    cache: pip

This currently doesn't work, because the version is not set.

You can do something similar with setup-node, for example:

- uses: actions/setup-node@v4
  with:
    cache: npm

Justification:
It would be able to use the existing logic in this action to cache dependencies, instead of having to use the cache action manually.

Are you willing to submit a PR?
Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew feature or request to improve the current logic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions