Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/_validate-linux-binary.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: 'validate-linux-binary'
description: 'Linux Binary Conda or Wheel Validation'
inputs:
gpu_arch_type:
description: 'GPU arch type'
required: true
default: 'cpu'
gpu_arch_ver:
description: 'GPU arch version'
required: true
default: 'cpu'
installation:
description: 'Installation instructions'
required: true
default: ''
python_version:
description: 'Python version'
required: true
default: '3.9'
runs:
using: "composite"
steps:
- name: Check nvidia smi
if: ${{ inputs.gpu_arch_type == 'cuda' }}
run: |
nvidia-smi
- name: Instlla Conda
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ inputs.python_version }}
auto-update-conda: true
miniconda-version: "latest"
activate-environment: testenv
- name: Install PyTorch and run tests
env:
GPU_ARCH_VER: ${{ inputs.gpu_arch_version }}
GPU_ARCH_TYPE: ${{ inputs.gpu_arch_type }}
INSTALLATION: ${{ inputs.installation }}
ENV_NAME: conda-env-${{ github.run_id }}
run: |
set -ex
conda create -yp ${ENV_NAME} python=${{ inputs.python_version }} numpy
conda run -p ${ENV_NAME} $INSTALLATION
conda run -p ${ENV_NAME} python3 ./test/smoke_test/smoke_test.py