From 97034c3950c0d8e27b4cb6ea2f75d30092beda75 Mon Sep 17 00:00:00 2001 From: andysamfb <111015134+andysamfb@users.noreply.github.com> Date: Fri, 23 Sep 2022 11:17:49 -0400 Subject: [PATCH] Update validate-linux-binaries.yml --- .github/workflows/validate-linux-binaries.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/validate-linux-binaries.yml b/.github/workflows/validate-linux-binaries.yml index 4afcd283fe..2672166f41 100644 --- a/.github/workflows/validate-linux-binaries.yml +++ b/.github/workflows/validate-linux-binaries.yml @@ -86,7 +86,7 @@ jobs: steps: - name: Checkout PyTorch builder uses: actions/checkout@v2 - - name: Instlla Conda + - name: Install Conda uses: conda-incubator/setup-miniconda@v2 with: python-version: ${{ inputs.python_version }} @@ -102,7 +102,6 @@ jobs: DESIRED_CUDA: ${{ matrix.desired_cuda }} DESIRED_DEVTOOLSET: ${{ matrix.devtoolset }} PACKAGE_TYPE: libtorch - LD_LIBRARY_PATH: /usr/local/cuda/lib run: | sudo apt-get install unzip -y set -ex @@ -111,4 +110,6 @@ jobs: conda create -yp ${ENV_NAME} python=${{ inputs.python_version }} numpy export LD_LIBRARY_PATH="$(dirname $(which python))/lib" export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/cuda/lib + conda run -p ${ENV_NAME} python3 ./test/smoke_test/smoke_test.py conda run -p ${ENV_NAME} --cwd libtorch env LD_LIBRARY_PATH=${LD_LIBRARY_PATH} bash ./../check_binary.sh + conda env remove -p ${ENV_NAME}