Skip to content

Commit 65c69ae

Browse files
author
yuzelin
committed
fix
1 parent 1fee086 commit 65c69ae

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

dev/build-wheels.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ set -e -x
1919
dev/lint-python.sh -s py_env
2020

2121
PY_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
2425
for ((i=0;i<${#py_env[@]};i++)) do
2526
echo "Installing dependencies for environment: ${py_env[i]}"

dev/lint-python.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,6 @@ function check_stage() {
571571
#########################
572572
# Tox check
573573
function 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'

0 commit comments

Comments
 (0)