Skip to content

Commit c511477

Browse files
Torch 2.9 CI fix + Avoid unnecessary gitlab pipeline creation on internal mirror commits (#440)
Signed-off-by: Keval Morabia <[email protected]>
1 parent 4df4091 commit c511477

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.gitlab/tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
rules:
77
- if: $CI_PIPELINE_SOURCE == "schedule"
88
- if: $CI_COMMIT_TAG =~ /^\d+\.\d+\.\d+$/
9-
- when: manual
9+
- if: $CI_PIPELINE_SOURCE == "web" || $CI_MERGE_REQUEST_TARGET_BRANCH_PROTECTED == "true"
10+
when: manual
1011

1112
##### Unit Tests #####
1213
unit:

tox.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ commands =
3838
allowlist_externals =
3939
bash, rm
4040
deps =
41+
# Make sure torch 2.8 is used
42+
torchvision~=0.23.0
43+
4144
# Build onnxsim from sdists for Python 3.12 until http://github.com/daquexian/onnx-simplifier/pull/353
4245
py312: onnxsim
4346

0 commit comments

Comments
 (0)