From b1bf5eb6bca93a945d251b04d0ec06d15c588f14 Mon Sep 17 00:00:00 2001 From: udaij12 Date: Tue, 31 Oct 2023 13:36:58 -0700 Subject: [PATCH] path testing --- .../regression_tests_gpu_binaries.yml | 97 +++++++++---------- 1 file changed, 45 insertions(+), 52 deletions(-) diff --git a/.github/workflows/regression_tests_gpu_binaries.yml b/.github/workflows/regression_tests_gpu_binaries.yml index f8804561754..a7202298a81 100644 --- a/.github/workflows/regression_tests_gpu_binaries.yml +++ b/.github/workflows/regression_tests_gpu_binaries.yml @@ -26,55 +26,43 @@ jobs: sudo rm -rf ./* || true sudo rm -rf ./.??* || true ls -la ./ - - name: Checkout TorchServe - uses: actions/checkout@v3 - - name: conda env - shell: bash -el {0} + - uses: conda-incubator/setup-miniconda@v2 + with: + miniconda-version: "latest" + - name: Setup Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + architecture: x64 + - name: Setup Conda + uses: s-weigand/setup-conda@v1 + with: + update-conda: true + python-version: ${{ matrix.python-version }} + conda-channels: anaconda, conda-forge + - name: Setup Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + architecture: x64 + - name: debug run: | - conda create -n python38 python=3.8 - conda activate - python --version - python ts_scripts/install_dependencies.py --environment=dev --cuda=cu121 - python test/regression_tests.py --binaries --${{ matrix.binaries }} --nightly - - # - uses: conda-incubator/setup-miniconda@v2 - # with: - # miniconda-version: "latest" - # python-version: ${{ matrix.python-version }} - # activate-environment: "foo" - # - name: Setup Python ${{ matrix.python-version }} - # uses: actions/setup-python@v4 - # with: - # python-version: ${{ matrix.python-version }} - # architecture: x64 - # - name: Setup Conda - # uses: s-weigand/setup-conda@v1 - # with: - # update-conda: true - # python-version: ${{ matrix.python-version }} - # conda-channels: anaconda, conda-forge - # - name: Setup Python ${{ matrix.python-version }} - # uses: actions/setup-python@v4 - # with: - # python-version: ${{ matrix.python-version }} - # architecture: x64 - # - name: debug - # run: | - # which python - # echo $PATH - # which conda - # echo $GITHUB_PATH - + echo "3/condabin" >>"${GITHUB_PATH}" + which python + echo $PATH + which conda + echo $GITHUB_PATH + which python3.8 # - name: Setup Anaconda # run: | # conda install -y conda-build anaconda-client - # - run: python --version - # - run: conda --version - # - name: Setup Java 17 - # uses: actions/setup-java@v3 - # with: - # distribution: 'zulu' - # java-version: '17' + - run: python --version + - run: conda --version + - name: Setup Java 17 + uses: actions/setup-java@v3 + with: + distribution: 'zulu' + java-version: '17' # - name: Clean up previous run # run: | @@ -104,10 +92,15 @@ jobs: # - run: conda --version # - run: python --version - - # - name: Install dependencies - # run: | - # python ts_scripts/install_dependencies.py --environment=dev --cuda=cu121 - # - name: Torchserve Regression Tests - # run: | - # python test/regression_tests.py --binaries --${{ matrix.binaries }} --nightly + - name: Checkout TorchServe + uses: actions/checkout@v3 + - name: debug 2 + shell: bash -el {0} + run: | + conda list + - name: Install dependencies + run: | + python ts_scripts/install_dependencies.py --environment=dev --cuda=cu121 + - name: Torchserve Regression Tests + run: | + python test/regression_tests.py --binaries --${{ matrix.binaries }} --nightly