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 &&