Add pip dependency caching to sync.yml workflow#240
Merged
Conversation
|
😎 Merged manually by @abhimehro - details. |
|
👋 Development Partner is reviewing this PR. Will provide feedback shortly. |
Co-authored-by: abhimehro <84992105+abhimehro@users.noreply.github.com>
Co-authored-by: abhimehro <84992105+abhimehro@users.noreply.github.com>
Co-authored-by: abhimehro <84992105+abhimehro@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add CI dependency caching to speed up GitHub Actions workflows
Add pip dependency caching to sync.yml workflow
Feb 15, 2026
|
👋 Development Partner is reviewing this PR. Will provide feedback shortly. |
There was a problem hiding this comment.
Pull request overview
Adds pip dependency caching to the sync.yml GitHub Actions workflow by introducing a requirements.txt aligned with pyproject.toml, and documents how the cache is expected to behave and be maintained.
Changes:
- Added
requirements.txtto mirror runtime dependencies for CI caching. - Updated
.github/workflows/sync.ymlto enable pip caching viaactions/setup-python@v5and install viapip install -r requirements.txt. - Expanded README with CI/CD dependency caching documentation and suggested sync/verification steps.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| requirements.txt | Introduces a dependency file used for pip cache keying in CI. |
| README.md | Documents cache behavior and manual dependency sync/verification process. |
| .github/workflows/sync.yml | Enables pip caching and aligns install step with requirements.txt. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
👋 Development Partner is reviewing this PR. Will provide feedback shortly. |
|
👋 Development Partner is reviewing this PR. Will provide feedback shortly. |
abhimehro
approved these changes
Feb 15, 2026
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.
CI workflows install dependencies on every run without caching. Expected ~70-85% reduction in dependency installation time once cache is warm.
Changes
Created
requirements.txt- Mirrorspyproject.tomldependencies. Project uses flat layout (no src/), sopip install -e .fails. Requirements file enables effective caching with minimal structural changes.Enhanced
.github/workflows/sync.yml- Added explicitcache-dependency-path: 'requirements.txt'toactions/setup-python@v5. Changed install command from directpip install httpx python-dotenvtopip install -r requirements.txtfor cache key alignment.Documentation - Added CI/CD caching section to README covering cache behavior, maintenance workflow, and dependency sync verification scripts.
Cache Behavior
Cache key: SHA-256 hash of
requirements.txtInvalidation: Automatic on dependency changes
Location:
~/.cache/pip(managed by setup-python action)Performance:
Maintenance
requirements.txtrequires manual sync withpyproject.toml. With only 2 runtime dependencies that change infrequently, automation overhead exceeds benefit. README includes extraction and verification scripts.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.