Skip to content

Commit

Permalink
Add test ops validation for validation workflows (#1655)
Browse files Browse the repository at this point in the history
  • Loading branch information
atalman authored Dec 28, 2023
1 parent 3b47169 commit f2b22ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/scripts/validate_test_ops.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ retry () {
$* || (sleep 1 && $*) || (sleep 2 && $*) || (sleep 4 && $*) || (sleep 8 && $*)
}

BRANCH="@main"
BRANCH=""
if [[ ${MATRIX_CHANNEL} == "test" ]]; then
SHORT_VERSION=${MATRIX_STABLE_VERSION%.*}
BRANCH="@release/${SHORT_VERSION}"
BRANCH="--branch release/${SHORT_VERSION}"
fi


# Clone the Pytorch branch
retry git clone --depth 1 https://github.com/pytorch/pytorch.git${BRANCH}
retry git clone ${BRANCH} --depth 1 https://github.com/pytorch/pytorch.git
retry git submodule update --init --recursive
pushd pytorch

Expand Down

0 comments on commit f2b22ad

Please sign in to comment.