From 0911a9379708c21177bf9709596827b9431b9658 Mon Sep 17 00:00:00 2001 From: Jiawei Li Date: Wed, 28 Aug 2024 18:01:53 +0800 Subject: [PATCH] Update build-and-test.yaml --- .github/workflows/build-and-test.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index cc70dc0ef..d8c8de5d2 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -15,12 +15,11 @@ jobs: run: shell: bash steps: - - name: Set environment - run: | - source /root/.bashrc && conda activate py38 - name: Pull latest codes run: - sudo su - root -c "pushd /root/Git.d/onnxruntime && + sudo su - root -c "source /root/.bashrc && + conda activate py38 && + pushd /root/Git.d/onnxruntime && git fetch --all && git rebase upstream/main && git submodule update --init --recursive &&