dmlc--dgl
d30a69bf27
* tf * add builtin support * fiix * pytest * fix * fix * fix some bugs * fix selecting * fix todo * fix test * fix test fail in tf * fix * fix * fix gather row * fix gather row * log backend * fix gather row * fix gather row * fix for pytorch * fix * fix * fix * fix * fix * fix tests * fix * fix * fix * fix * fix * fix * fix convert * fix * fix * fix * fix inplace * add alignment setting * add debug option * Revert "add alignment setting" This reverts commit ec63fb3506ea84fff7d447a1fbdfd1d5d1fb6110. * tf ci * fix lint * fix lint * add tfdlpack * fix type * add env * fix backend * fix * fix tests * remove one_hot * remove comment * remove comment * fix * use pip to install all * fix test * fix base * fix * fix * add skip * upgrade cmake * change version * change ci * fix * fix * fix * fix * fix seg fault * fix * fix python version * fix * try fix * fix * fix * tf takes longer time in ci * change py version * fix * fix * fix oom * change kg env * change kg env * 啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊 * 我再也不搞各种乱七八糟环境了…… * use pytest * Chang image
30 行
656 B
Bash
30 行
656 B
Bash
#!/bin/bash
|
|
# The working directory for this script will be "tests/scripts"
|
|
|
|
. /opt/conda/etc/profile.d/conda.sh
|
|
conda activate pytorch-ci
|
|
TUTORIAL_ROOT="./tutorials"
|
|
|
|
function fail {
|
|
echo FAIL: $@
|
|
exit -1
|
|
}
|
|
|
|
export MPLBACKEND=Agg
|
|
export DGLBACKEND=pytorch
|
|
export DGL_LIBRARY_PATH=${PWD}/build
|
|
export PYTHONPATH=${PWD}/python:$PYTHONPATH
|
|
export DGL_DOWNLOAD_DIR=${PWD}
|
|
|
|
pushd ${TUTORIAL_ROOT} > /dev/null
|
|
# Install requirements
|
|
pip install -r requirements.txt || fail "installing requirements"
|
|
|
|
# Test
|
|
for f in $(find . -name "*.py" ! -name "*_mx.py")
|
|
do
|
|
echo "Running tutorial ${f} ..."
|
|
python3 $f || fail "run ${f}"
|
|
done
|
|
|
|
popd > /dev/null |