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

Improve Github Action caching #715

Merged
merged 2 commits into from
Mar 22, 2022
Merged

Improve Github Action caching #715

merged 2 commits into from
Mar 22, 2022

Conversation

maximlt
Copy link
Member

@maximlt maximlt commented Mar 22, 2022

As discussed with @MridulS:

  • Remove the restore key since the goal is to hit exactly the cache required
  • Add the options (e.g. tests, build, docs...) used for develop_install. Without that there would be no way to distinguish between two caches used by two different workflows (e.g. tests and docs). It's not perfect though, since sometimes there are some packages that are installed without develop_install (e.g. some packages only available with pip). Maybe it'd be a good idea to have the hash of the workflow itself part of the cache key.

@maximlt maximlt merged commit 24502ef into master Mar 22, 2022
@maximlt maximlt deleted the improve_gha_cache branch March 22, 2022 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant