Skip to content

Commit f736503

Browse files
committed
Use correct transformers and timm version during linting
Previously install_executorch.sh installed the versions pinned in requirements-examples.txt, while the linting job installed the latest version, leading to diffs. Fix this by installing the requirements directly from requirements-examples.txt instead. Signed-off-by: Adrian Lundell <adrian.lundell@arm.com> Change-Id: I08945f719e36b726de9584560c41bdcf79c297f9
1 parent 71de34d commit f736503

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/lint.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,18 @@ jobs:
4141
with:
4242
python-version: '3.11'
4343
cache: 'pip'
44-
cache-dependency-path: requirements-lintrunner.txt
44+
cache-dependency-path: |
45+
requirements-lintrunner.txt
46+
requirements-examples.txt
4547
4648
- name: Install dependencies
4749
run: |
4850
pip install torch --index-url https://download.pytorch.org/whl/cpu
4951
pip install lintrunner==0.12.7 lintrunner-adapters==0.13.0
5052
pip install -r requirements-lintrunner.txt
5153
USE_CPP=0 pip install --no-build-isolation third-party/ao
52-
pip install pytest numpy parameterized huggingface_hub transformers timm expecttest types-requests
54+
pip install -r requirements-examples.txt
55+
pip install pytest numpy parameterized huggingface_hub expecttest types-requests
5356
pip install torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
5457
5558
- name: Generate mypy stubs for C++ bindings

0 commit comments

Comments
 (0)