diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 866512c88f..0ecae332d2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -159,7 +159,11 @@ cache: elif [[ "${CI_JOB_STAGE}" == "build" ]]; then run_cmd bash install.sh --enable-ci --enable-pytest else - run_cmd bash install.sh --enable-ci + if ! echo "${CI_JOB_NAME}" | egrep ".+_pytest_.+"; then + run_cmd bash install.sh --enable-ci + else + run_cmd bash install.sh --enable-ci --enable-pytest + fi fi source ./export.sh