Repository navigation
[ci] Use uv for pip installs in CI workflow - #1650
Conversation
Mirror esphome/esphome#16451 for the aioesphomeapi side. Both matrix entries in the `ci` job and the `benchmarks` job switched from `pip3 install` to `uv pip install --system` and now pull in `astral-sh/[email protected]` (SHA-pinned, `enable-cache: true`). The manual pip download cache and `setup-python`'s `cache: pip` are dropped — uv's own cache replaces both.
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1650 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 25 25
Lines 4043 4043
=========================================
Hits 4043 4043 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
This workflow-only PR updates CI dependency installation to use uv instead of direct pip3 install, aligning aioesphomeapi CI with the mirrored ESPHome workflow change.
Changes:
- Adds
astral-sh/setup-uvwith caching to CI and benchmark jobs. - Replaces
pip3 installcommands withuv pip install --system. - Removes redundant pip cache setup from affected jobs.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
What does this implement/fix?
Mirror of esphome/esphome#16451 for the
aioesphomeapiside..github/workflows/ci.ymlwas the only place still calling rawpip3 install. Both matrix entries in thecijob (skip_cython/ use_cython) and the standalone
benchmarksjob now go throughuv pip install --system, withastral-sh/[email protected](SHA-pinned,
enable-cache: true) added beforehand.Changes:
cijob — drops the manualpip cache dir+actions/cachepair (redundant once
uvhas its own cache) and rewrites thetwo
Set up Python environment (...)steps to useuv pip install --system. There is no venv in this workflow, so--systemlands the install in thesetup-pythoninterpreter,matching the previous
pip3 installshape.benchmarksjob — dropscache: 'pip'fromsetup-pythonfor the same reason and switches its
pip3 installcalls touv pip install --system.No production code is touched; this is workflow-only. Steady-state
behaviour is identical to today — the speed-up shows up on cache
misses (requirements change, new Python version, etc.) and on the
first run after the cache key rotates.
Types of changes
Related issue or feature (if applicable):
Pull request in esphome (if applicable):
Checklist:
tests/folder).