ni / ni/python-actions

Create a `cache-project-venv` action

Open
#38 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
2
Forks
0
Avg merge
2d 5h
Merged PRs (30d)
1

Description

Problem to Solve

The caching logic in analyze-project would be useful for other workflows:

  • It generates a cache key based on the project name in the pyproject.toml file, the Python version from setup-python, etc.
  • It asks Poetry for the venv path instead of hardcoding it.

Proposed Solution

Extract the caching steps into a cache-project-venv action.

Add use-cache and cache-hit inputs/outputs for testing, like in setup-poetry.

AB#3354221

Contributor guide

Open the contributing guide

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 locating the caching logic in the existing analyze-project action and compare setup-poetry's use-cache and cache-hit inputs and outputs. Extract the project-name, Python-version, and Poetry virtual-environment-path behavior into the new cache-project-venv action, then verify its cache controls and outputs in the relevant workflows.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.