mirror of
https://github.com/alibaba/EasyCV.git
synced 2025-06-03 14:49:00 +08:00
modify citest to install package (#223)
* modify citest from source code to install
This commit is contained in:
parent
8fa2f6ea40
commit
55c9d8d270
11
.github/workflows/citest.yaml
vendored
11
.github/workflows/citest.yaml
vendored
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user