modify citest to install package (#223)

* modify citest from source code to install
This commit is contained in:
Cathy0908 2022-11-03 11:53:18 +08:00 committed by GitHub
parent 8fa2f6ea40
commit 55c9d8d270
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,8 +58,6 @@ jobs:
fi
export OSS_CONFIG_FILE=$UNITTEST_OSS_CONFIG
export PYTHONPATH=.
export TEST_DIR="/tmp/easycv_test_${USER}_`date +%s`"
# do not uncomments, casue faild in Online UT, install requirements by yourself on UT machine
@ -67,7 +65,14 @@ jobs:
#run test
export CUDA_VISIBLE_DEVICES=7
source ~/workspace/anaconda2/etc/profile.d/conda.sh
conda activate evtorch_torch1.8.0
conda activate easycv_torch1.8.0
# pip install pai-easycv
pip uninstall -y pai-easycv
python setup.py install
# move source code, ensure import easycv from site-package
mv ./easycv ./easycv_src
PYTHONPATH=. python tests/run.py