Skip to content

Commit e80b5b6

Browse files
Fix: keep torch.testing (imported at runtime), only remove torch/test
1 parent 2da8129 commit e80b5b6

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/build-vllm-rocm.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,9 @@ jobs:
148148
find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true
149149
find . -name "*.pyc" -delete 2>/dev/null || true
150150
151-
# Remove test/benchmark dirs
152-
find $SP -maxdepth 2 -type d -name "tests" -exec rm -rf {} + 2>/dev/null || true
153-
find $SP -maxdepth 2 -type d -name "test" -exec rm -rf {} + 2>/dev/null || true
154-
find $SP -maxdepth 2 -type d -name "benchmarks" -exec rm -rf {} + 2>/dev/null || true
155-
rm -rf $SP/torch/test $SP/torch/testing 2>/dev/null || true
151+
# Remove test/benchmark dirs (but NOT torch.testing — it's imported at runtime)
152+
rm -rf $SP/torch/test 2>/dev/null || true
153+
rm -rf $SP/torch/benchmarks 2>/dev/null || true
156154
157155
# Remove .dist-info except vllm
158156
find $SP -maxdepth 1 -type d -name "*.dist-info" ! -name "vllm*" -exec rm -rf {} + 2>/dev/null || true

0 commit comments

Comments
 (0)