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