Cache .repository folder and simplify use of pip cache#320
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the GitHub Actions workflows to rely on actions/setup-python’s built-in pip caching and adds caching for the local .repository dataset folder to speed up repeated CI runs.
Changes:
- Switch documentation workflow from a custom
pip cache dir+actions/cachesetup toactions/setup-python’scache: pip. - Enable pip caching in the CI pytest matrix via
actions/setup-python. - Add an
actions/cachestep to persist the.repositoryfolder between CI runs.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| .github/workflows/documentation.yml | Simplifies dependency caching by using setup-python’s pip cache and streamlines the install step. |
| .github/workflows/ci.yml | Enables pip caching and introduces caching of .repository to reduce repeated dataset setup work across CI runs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+36
to
+41
| - name: Cache .repository folder | ||
| uses: actions/cache@v5 | ||
| with: | ||
| path: .repository | ||
| key: repository-v1 | ||
| restore-keys: repository- |
Collaborator
Author
There was a problem hiding this comment.
I think it's fine as it happens only during the run with the first cache miss and I don't want to create another job to download to the cache first
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rerunning the job seems to have restored the cache successfully:

Cache artifacts be found here: https://github.com/icecube/skyllh/actions/caches
The only caveat is that when we change the (expected) content of
.repositorywe should remove the cached folder in actions/caches or increment the version key so that the cache is updated.