From 562839526f7fd5fcb398fb7df50b328f177253c3 Mon Sep 17 00:00:00 2001 From: tianshuo78520a <707759223@qq.com> Date: Tue, 23 Nov 2021 14:32:10 +0800 Subject: [PATCH] Fix PR-CI-Static-Check (#37417) Fix PR-CI-Static-Check --- paddle/scripts/paddle_build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index c2da0215c83..bf76e6dab5a 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -2301,7 +2301,12 @@ function build_document_preview() { # origin name: example function exec_samplecode_test() { - pip install ${PADDLE_ROOT}/build/python/dist/*.whl + if [ -d "${PADDLE_ROOT}/build/pr_whl" ];then + pip install ${PADDLE_ROOT}/build/pr_whl/*.whl + else + pip install ${PADDLE_ROOT}/build/python/dist/*.whl + fi + paddle version cd ${PADDLE_ROOT}/tools if [ "$1" = "cpu" ] ; then -- GitLab