Skip to content

Commit 50cb7c5

Browse files
authored
Add test ops validation for validation workflows (#1653)
1 parent 9c8a8dc commit 50cb7c5

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/scripts/validate_test_ops.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,19 @@ retry () {
66
$* || (sleep 1 && $*) || (sleep 2 && $*) || (sleep 4 && $*) || (sleep 8 && $*)
77
}
88

9+
BRANCH = "@main"
10+
if [[ ${MATRIX_CHANNEL} == "test" ]]
11+
SHORT_VERSION=${MATRIX_STABLE_VERSION%.*}
12+
BRANCH="@release/${SHORT_VERSION}"
13+
fi
14+
15+
916
# Clone the Pytorch branch
10-
retry git clone --depth 1 https://github.com/pytorch/pytorch.git
17+
retry git clone --depth 1 https://github.com/pytorch/pytorch.git${BRANCH}
1118
retry git submodule update --init --recursive
1219
pushd pytorch
1320

14-
pip install expecttest pyyaml jinja2
21+
pip install expecttest pyyaml jinja2 packaging
1522

1623
# Run test_ops validation
1724
export CUDA_LAUNCH_BLOCKING=1

0 commit comments

Comments
 (0)