mirror of
https://github.com/dmlc/dgl.git
synced 2026-06-04 19:44:23 +08:00
28 lines
621 B
Bash
28 lines
621 B
Bash
#!/bin/bash
|
|
|
|
. /opt/conda/etc/profile.d/conda.sh
|
|
|
|
function fail {
|
|
echo FAIL: $@
|
|
exit -1
|
|
}
|
|
|
|
export DGLBACKEND=pytorch
|
|
export DGL_LIBRARY_PATH=${PWD}/build
|
|
export PYTHONPATH=tests:${PWD}/python:$PYTHONPATH
|
|
export DGL_DOWNLOAD_DIR=${PWD}/_download
|
|
|
|
conda activate pytorch-ci
|
|
|
|
pushd dglgo
|
|
rm -rf build *.egg-info dist
|
|
pip uninstall -y dglgo
|
|
python3 setup.py install
|
|
popd
|
|
|
|
export LC_ALL=C.UTF-8
|
|
export LANG=C.UTF-8
|
|
|
|
# Skip go tests due to ImportError: cannot import name 'cached_property' from 'functools' in python3.7
|
|
#python3 -m pytest -v --junitxml=pytest_go.xml --durations=100 tests/go/test_model.py || fail "go"
|