Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pip cache for GitHub Actions #6923

Merged
merged 1 commit into from
Jun 3, 2022
Merged

Conversation

drew2a
Copy link
Contributor

@drew2a drew2a commented Jun 2, 2022

@drew2a drew2a force-pushed the feature/pip_cache branch 4 times, most recently from f611189 to d7af844 Compare June 2, 2022 15:17
@drew2a drew2a marked this pull request as ready for review June 2, 2022 15:27
@drew2a drew2a requested review from a team and xoriole and removed request for a team June 2, 2022 15:28
Copy link
Contributor

@xoriole xoriole left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! How can the cache be cleared if we need to?

@drew2a
Copy link
Contributor Author

drew2a commented Jun 3, 2022

@xoriole in the current implementation it is not possible.

But for cache renewal like this:

python -m pip install --upgrade pip
pip install -r requirements.txt

You can just comment this line:
https://github.com/drew2a/tribler/blob/a48031e768de099ec2ad955051bd3adc859e36b1/.github/actions/pyenv/action.yml#L33

@drew2a
Copy link
Contributor Author

drew2a commented Jun 3, 2022

Also please take a look at this link: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy

@drew2a drew2a merged commit e4504fa into Tribler:main Jun 3, 2022
@drew2a drew2a added this to the 7.13.0 June milestone Jun 3, 2022
@drew2a drew2a self-assigned this Jun 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants