mandiant / mandiant/capa

CI: consider caching pip downloads in tests.yml

Open
#2,944 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

CI enhancement performance
Dominant language
Python
Stars
6.2k
Forks
726
Avg merge
11d 11h
Merged PRs (30d)
7

Description

There are five workflows that use the `actions/setup-python` action and run `pip install` but don't enable pip caching. Each workflow run downloads all deps from PyPI even when `requirements.txt` hasn't changed. Especially in `tests.yml` which spawns 12+ matrix runners per PR, I think we can reduce CI time.

```yml
- uses: actions/setup-python@v5.0.0
with:
python-version: "3.13"
cache: 'pip'
```

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

Inspect tests.yml first, then locate the other four workflows that use actions/setup-python and run pip install. Compare their dependency files and existing setup-python configuration, then enable pip caching where appropriate. Done means the workflows use the requested cache and CI completes successfully with the existing test matrix.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.