Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
atalman committed Sep 1, 2022
1 parent 7ceee94 commit b91977f
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions .github/workflows/validate-linux-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
package-type: libtorch
os: linux
channel: nightly
validate-linux-binaries-conda:
validate-linux-binaries-conda:
needs: generate-conda-matrix
strategy:
matrix:
Expand All @@ -38,28 +38,19 @@ jobs:
steps:
- name: Checkout PyTorch builder
uses: actions/checkout@v2
- name: Check nvidia smi
if: ${{ matrix.gpu_arch_type == 'cuda' }}
- name: Check
run: |
nvidia-smi
- name: Instlla Conda
uses: conda-incubator/setup-miniconda@v2
pwd
ls -las
ls .github/
ls .github/workflows/
- name: Validate binary conda
uses: ./.github/workflows/_validate-linux-binary.yml
with:
python-version: ${{ matrix.python_version }}
auto-update-conda: true
miniconda-version: "latest"
activate-environment: testenv
- name: Install PyTorch and run tests
env:
GPU_ARCH_VER: ${{ matrix.gpu_arch_version }}
GPU_ARCH_TYPE: ${{ matrix.gpu_arch_type }}
INSTALLATION: ${{ matrix.installation }}
ENV_NAME: conda-env-${{ github.run_id }}
run: |
set -ex
conda create -yp ${ENV_NAME} python=${{ matrix.python_version }} numpy
conda run -p ${ENV_NAME} $INSTALLATION
conda run -p ${ENV_NAME} python3 ./test/smoke_test/smoke_test.py
gpu_arch_type: ${{ matrix.gpu_arch_type }}
gpu_arch_ver: ${{ matrix.gpu_arch_version }}
installation: ${{ matrix.installation }}
python_version: ${{ matrix.python_version }}
validate-linux-binaries-wheels:
needs: generate-wheel-matrix
strategy:
Expand Down

0 comments on commit b91977f

Please sign in to comment.