mirror of
https://github.com/esphome/esphome.git
synced 2026-09-15 09:08:41 +00:00
[ci] Cache importtime-waterfall in the shared venv
The import-time job previously did a `pip install` on every run (~1s and some noisy output). Moving the pin to `requirements_test.txt` bakes it into the venv that `common` already builds and caches, so the job restores it from the cache and skips the install step.
This commit is contained in:
@@ -123,10 +123,6 @@ jobs:
|
||||
with:
|
||||
python-version: ${{ env.DEFAULT_PYTHON }}
|
||||
cache-key: ${{ needs.common.outputs.cache-key }}
|
||||
- name: Install importtime-waterfall
|
||||
run: |
|
||||
. venv/bin/activate
|
||||
pip install importtime-waterfall==1.0.0
|
||||
- name: Check import time against budget
|
||||
run: |
|
||||
. venv/bin/activate
|
||||
|
||||
@@ -12,3 +12,6 @@ pytest-asyncio==1.3.0
|
||||
pytest-xdist==3.8.0
|
||||
asyncmock==0.4.2
|
||||
hypothesis==6.92.1
|
||||
|
||||
# Used by the import-time regression check (.github/workflows/ci.yml → import-time job)
|
||||
importtime-waterfall==1.0.0
|
||||
|
||||
Reference in New Issue
Block a user