Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Commit 0070e47

Browse files
committed
consolidated workflow
1 parent c474e9d commit 0070e47

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/validate-windows-binaries.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,22 @@ jobs:
8080
uses: conda-incubator/setup-miniconda@v2
8181
with:
8282
python-version: ${{ matrix.python_version }}
83+
auto-update-conda: true
8384
miniconda-version: "latest"
84-
auto-activate-base: false
85-
activate-environment: conda-env-${{ github.run_id }}
85+
activate-environment: testenv
8686
- name: Check nvidia smi
8787
if: ${{ matrix.gpu_arch_type == 'cuda' }}
8888
run: |
8989
nvidia-smi
90-
- name: Install deps and run smoke test
91-
shell: bash -l {0}
90+
- name: Conda Install pytorch and smoke test
91+
shell: bash
92+
env:
93+
GPU_ARCH_VER: ${{ matrix.gpu_arch_version }}
94+
GPU_ARCH_TYPE: ${{ matrix.gpu_arch_type }}
95+
INSTALLATION: ${{ matrix.installation }}
96+
ENV_NAME: conda-env-${{ github.run_id }}
9297
run: |
9398
set -ex
94-
conda install numpy pytorch torchvision torchaudio cpuonly -c pytorch-nightly
95-
conda run python3 ./test/smoke_test/smoke_test.py
99+
conda create -yp ${ENV_NAME} python=${{ matrix.python_version }} numpy
100+
conda run -p ${ENV_NAME} $INSTALLATION
101+
conda run -p ${ENV_NAME} python3 ./test/smoke_test/smoke_test.py

0 commit comments

Comments
 (0)