File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ set -e -x
1919dev/lint-python.sh -s py_env
2020
2121PY_ENV_DIR=` pwd` /dev/.conda/envs
22- py_env=(" 3.8" " 3.9" " 3.10" " 3.11" )
22+ # Don't need to build with different Python version when there are no C-related codes
23+ py_env=(" 3.11" )
2324# # 2. install dependency
2425for (( i= 0 ;i< ${# py_env[@]} ;i++ )) do
2526 echo " Installing dependencies for environment: ${py_env[i]} "
Original file line number Diff line number Diff line change @@ -571,7 +571,6 @@ function check_stage() {
571571# ########################
572572# Tox check
573573function tox_check() {
574- LATEST_PYTHON=" py311"
575574 print_function " STAGE" " tox checks"
576575 # Set created py-env in $PATH for tox's creating virtual env
577576 activate
@@ -581,11 +580,11 @@ function tox_check() {
581580 # tox runs codes in virtual env, set var to avoid error
582581 export _PYPAIMON_TOX_TEST=" true"
583582
584- if [[ ${BUILD_REASON} = ' IndividualCI ' ]]; then
585- # Only run test in latest python version triggered by a Git push
586- $TOX_PATH -vv -c $PAIMON_PYTHON_DIR /tox.ini -e ${LATEST_PYTHON} - -recreate 2>&1 | tee -a $LOG_FILE
583+ if [[ -n " $GITHUB_ACTION " ]]; then
584+ # Run tests in all versions triggered by a Git push (tests aren't so many currently)
585+ $TOX_PATH -vv -c $PAIMON_PYTHON_DIR /tox.ini --recreate 2>&1 | tee -a $LOG_FILE
587586 else
588- # Only run random selected python version in nightly CI .
587+ # Only run random selected python version at local .
589588 ENV_LIST_STRING=` $TOX_PATH -l -c $PAIMON_PYTHON_DIR /tox.ini`
590589 _OLD_IFS=$IFS
591590 IFS=$' \n '
You can’t perform that action at this time.
0 commit comments