ci: install pytest packages if job name has _pytest_

This commit is contained in:
Fu Hanxi 2022-10-13 13:51:15 +08:00
parent 67bb3d0932
commit 43f58f724d

View File

@ -159,7 +159,11 @@ cache:
elif [[ "${CI_JOB_STAGE}" == "build" ]]; then
run_cmd bash install.sh --enable-ci --enable-pytest
else
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