Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/10014958 * [to #44702084]fix: ci pip install domain in single commands, find with requirement install failed is complicated.master
| @@ -1,8 +1,8 @@ | |||||
| pip install -r requirements.txt -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html | |||||
| pip install -r requirements/audio.txt -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html | |||||
| pip install -r requirements/cv.txt -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html | |||||
| pip install -r requirements/multi-modal.txt -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html | |||||
| pip install -r requirements/nlp.txt -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html | |||||
| awk -F: '/^[^#]/ { print $1 }' requirements.txt | xargs -n 1 pip install -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html | |||||
| awk -F: '/^[^#]/ { print $1 }' requirements/audio.txt | xargs -n 1 pip install -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html | |||||
| awk -F: '/^[^#]/ { print $1 }' requirements/cv.txt | xargs -n 1 pip install -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html | |||||
| awk -F: '/^[^#]/ { print $1 }' requirements/multi-modal.txt | xargs -n 1 pip install -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html | |||||
| awk -F: '/^[^#]/ { print $1 }' requirements/nlp.txt | xargs -n 1 pip install -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html | |||||
| pip install -r requirements/tests.txt | pip install -r requirements/tests.txt | ||||
| git config --global --add safe.directory /Maas-lib | git config --global --add safe.directory /Maas-lib | ||||
| @@ -1,19 +0,0 @@ | |||||
| pip install -r requirements.txt -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html | |||||
| pip install -r requirements/audio.txt -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html | |||||
| pip install -r requirements/cv.txt -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html | |||||
| pip install -r requirements/multi-modal.txt -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html | |||||
| pip install -r requirements/nlp.txt -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html | |||||
| pip install -r requirements/tests.txt | |||||
| # install numpy<=1.18 for tensorflow==1.15.x | |||||
| pip install "numpy<=1.18" | |||||
| # linter test | |||||
| # use internal project for pre-commit due to the network problem | |||||
| pre-commit run --all-files | |||||
| if [ $? -ne 0 ]; then | |||||
| echo "linter test failed, please run 'pre-commit run --all-files' to check" | |||||
| exit -1 | |||||
| fi | |||||
| PYTHONPATH=. python tests/run.py | |||||
| @@ -1,7 +1,4 @@ | |||||
| # envs option allows fine-grained control for test executoin, for example, | |||||
| # python tests/run.py --env pytorch | |||||
| # would only trigger exeutions of all pytorch cases. | |||||
| # envs option defaults to None for backward compatbility | |||||
| # isolate cases in env, we can install different dependencies in each env. | |||||
| isolated: # test cases that may require excessive anmount of GPU memory, which will be executed in dedicagted process. | isolated: # test cases that may require excessive anmount of GPU memory, which will be executed in dedicagted process. | ||||
| - test_text_to_speech.py | - test_text_to_speech.py | ||||
| - test_multi_modal_embedding.py | - test_multi_modal_embedding.py | ||||