Skip to content

Commit 8646d69

Browse files
author
zhoujiamei
committed
Merge branch 'cuda_dev'
2 parents 9be90cb + d675bb3 commit 8646d69

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

.github/workflows/unit_tests_common.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ jobs:
7373
fail-fast: false
7474
matrix:
7575
test_group:
76+
- name: pytorch_lint
77+
path: "qa/L0_pytorch_lint/test.sh"
78+
test_type: "sh"
7679
- name: pytorch_debug
7780
path: "qa/L0_pytorch_debug_unittest/test.sh"
7881
test_type: "sh"
@@ -109,9 +112,6 @@ jobs:
109112
CHANGED='${{ needs.detect_changes.outputs.core }}'
110113
fi
111114
# For debugging, you can force this to true
112-
# echo "should_run=$CHANGED" >> $GITHUB_OUTPUT
113-
114-
# Force Run
115115
echo "should_run=true" >> $GITHUB_OUTPUT
116116
117117
- name: Checkout source code
@@ -212,9 +212,19 @@ jobs:
212212
")
213213
214214
export TE_PATH=$GITHUB_WORKSPACE
215+
export TE_LIB_PATH=$(python3 -c "import site; print(site.getsitepackages()[0])")
215216
export PYTHONPATH=$GITHUB_WORKSPACE:${PYTHONPATH:-}
216217
export PATH=${CUDA_HOME:-/usr/local/cuda}/bin:$PATH
217218
export LD_LIBRARY_PATH=${CUDA_HOME:-/usr/local/cuda}/lib:${LD_LIBRARY_PATH:-}
219+
# Ensure log directory exists regardless of volume mount state
220+
mkdir -p /logs
221+
222+
# check envs before running tests
223+
echo "TE_PATH=$TE_PATH"
224+
echo "TE_LIB_PATH=$TE_LIB_PATH"
225+
echo "PYTHONPATH=$PYTHONPATH"
226+
echo "PATH=$PATH"
227+
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
218228
219229
if [[ "${{ matrix.test_group.name }}" == *"lint"* ]]; then
220230
export CPP_ONLY=0

0 commit comments

Comments
 (0)