Skip to content

Commit

Permalink
Reduce worker number and upgrade version (#2590)
Browse files Browse the repository at this point in the history
  • Loading branch information
YuanTingHsieh committed May 23, 2024
1 parent 42064e2 commit b3abf1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions runtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ do
;;

-u |--unit*)
cmd_prefix="python3 -m pytest --numprocesses=auto -v "
cmd_prefix="python3 -m pytest --numprocesses=8 -v "

echo "coverage_report=" ${coverage_report}
if [ "${coverage_report}" == true ]; then
Expand Down Expand Up @@ -304,7 +304,7 @@ if [[ -z $cmd ]]; then
cmd="check_license;
check_style_type_import "${DIR_TO_CHECK[@]}";
fix_style_import "${DIR_TO_CHECK[@]}";
python3 -m pytest --numprocesses=auto -v --cov=nvflare --cov-report html:cov_html --cov-report xml:cov.xml --junitxml=unit_test.xml --dist loadgroup tests/unit_test;
python3 -m pytest --numprocesses=8 -v --cov=nvflare --cov-report html:cov_html --cov-report xml:cov.xml --junitxml=unit_test.xml --dist loadgroup tests/unit_test;
"
else
cmd="$cmd $target"
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ test_support =
flake8==5.0.4
black==22.10.0
click==8.1.3
pytest-xdist==3.0.2
pytest-cov==4.0.0
pytest-xdist==3.6.1
pytest-cov==5.0.0
pandas>=1.5.1

test =
Expand Down

0 comments on commit b3abf1f

Please sign in to comment.