actions / actions/setup-python

Use `setup-python` just for caching

Open
#1,175 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
TypeScript
Stars
2.2k
Forks
739
Avg merge
6d 18h
Merged PRs (30d)
1

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the action's cache handling and version validation, then compare the setup-node behavior described in the issue. Done means a workflow can use cache: pip without setting a Python version, with tests covering that configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, typescript
Domain
ci-cd, devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.