Skip to content

Commit 433be51

Browse files
committed
More changes
1 parent 827ddb4 commit 433be51

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

.github/scripts/validate_binaries.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,17 @@ else
1515
eval ${PIP_INSTALLATION}
1616
eval ${PYTHON_PATH}/python ./test/smoke_test/smoke_test.py --package torchonly
1717
else
18+
conda create -y -n ${ENV_NAME} python=${MATRIX_PYTHON_VERSION} numpy pillow
19+
conda activate ${ENV_NAME}
20+
INSTALLATION=${MATRIX_INSTALLATION/"conda install"/"conda install -y"}
21+
eval $INSTALLATION
22+
1823
if [[ ${TARGET_OS} == 'linux' ]]; then
1924
export CONDA_LIBRARY_PATH="$(dirname $(which python))/../lib"
2025
export LD_LIBRARY_PATH=$CONDA_LIBRARY_PATH:$LD_LIBRARY_PATH
2126
${PWD}/check_binary.sh
2227
fi
2328

24-
conda create -y -n ${ENV_NAME} python=${MATRIX_PYTHON_VERSION} numpy pillow
25-
conda activate ${ENV_NAME}
26-
INSTALLATION=${MATRIX_INSTALLATION/"conda install"/"conda install -y"}
27-
eval $INSTALLATION
2829
python ./test/smoke_test/smoke_test.py
2930
fi
3031
fi

.github/workflows/validate-domain-library.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,7 @@ jobs:
8989
script: |
9090
set -ex
9191
export ENV_NAME="conda-env-${{ github.run_id }}"
92-
export DESIRED_PYTHON="${{ matrix.python_version }}"
93-
export PACKAGE_TYPE="${{ matrix.package_type }}"
94-
export CHANNEL="${{ matrix.channel }}"
9592
export SMOKE_TEST="${{ inputs.smoke_test }}"
96-
export GPU_ARCH_VER="${{ matrix.gpu_arch_version }}"
97-
export GPU_ARCH_TYPE="${{ matrix.gpu_arch_type }}"
98-
export DESIRED_CUDA="${{ matrix.desired_cuda }}"
9993
eval $SMOKE_TEST
10094
validate-windows:
10195
if: (inputs.os == 'windows' || inputs.os == 'all')
@@ -113,13 +107,7 @@ jobs:
113107
script: |
114108
set -ex
115109
export ENV_NAME="conda-env-${{ github.run_id }}"
116-
export DESIRED_PYTHON="${{ matrix.python_version }}"
117-
export PACKAGE_TYPE="${{ matrix.package_type }}"
118-
export CHANNEL="${{ matrix.channel }}"
119110
export SMOKE_TEST="${{ inputs.smoke_test }}"
120-
export GPU_ARCH_VER="${{ matrix.gpu_arch_version }}"
121-
export GPU_ARCH_TYPE="${{ matrix.gpu_arch_type }}"
122-
export DESIRED_CUDA="${{ matrix.desired_cuda }}"
123111
export TARGET_OS="windows"
124112
eval $SMOKE_TEST
125113
validate-macos:
@@ -139,6 +127,7 @@ jobs:
139127
set -ex
140128
export ENV_NAME="conda-env-${{ github.run_id }}"
141129
export TARGET_OS="macos"
130+
export SMOKE_TEST="${{ inputs.smoke_test }}"
142131
source $SMOKE_TEST
143132
validate-macos-arm64:
144133
if: (inputs.os == 'macos-arm64' || inputs.os == 'all')

0 commit comments

Comments
 (0)