From c9d7b3d9bda3402d40ba7627d671869375c1c93d Mon Sep 17 00:00:00 2001 From: lwj-st <109193776+lwj-st@users.noreply.github.com> Date: Tue, 29 Oct 2024 12:50:43 +0800 Subject: [PATCH] add test timing (#328) --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cf51baca..c261f52f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -69,7 +69,7 @@ jobs: export PYTHONPATH=$PWD:$PYTHONPATH export LAZYLLM_DATA_PATH=/mnt/lustre/share_data/lazyllm/data/ export LAZYLLM_MODEL_PATH=/mnt/lustre/share_data/lazyllm/models - python -m pytest --lf --last-failed-no-failures=all --reruns=2 -v tests/basic_tests/ + python -m pytest --lf --last-failed-no-failures=all --durations=0 --reruns=2 -v tests/basic_tests/ AdvancedStandardTests: runs-on: tps_sco_nv @@ -86,7 +86,7 @@ jobs: export LAZYLLM_DATA_PATH=/mnt/lustre/share_data/lazyllm/data/ export LAZYLLM_MODEL_PATH=/mnt/lustre/share_data/lazyllm/models source ~/ENV/env.sh - python -m pytest --lf --last-failed-no-failures=all --reruns=2 -v tests/advanced_tests/standard_test/ + python -m pytest --lf --last-failed-no-failures=all --durations=0 --reruns=2 -v tests/advanced_tests/standard_test/ AdvancedFullTests: runs-on: tps_sco_nv @@ -101,7 +101,7 @@ jobs: export PYTHONPATH=$PWD:$PYTHONPATH export LAZYLLM_DATA_PATH=/mnt/lustre/share_data/lazyllm/data/ export LAZYLLM_MODEL_PATH=/mnt/lustre/share_data/lazyllm/models - python -m pytest --lf --last-failed-no-failures=all --reruns=2 -v tests/advanced_tests/full_test/ + python -m pytest --lf --last-failed-no-failures=all --durations=0 --reruns=2 -v tests/advanced_tests/full_test/ ChargeTests: runs-on: tps_sco_nv @@ -115,4 +115,4 @@ jobs: export LAZYLLM_DATA_PATH=/mnt/lustre/share_data/lazyllm/data/ export LAZYLLM_MODEL_PATH=/mnt/lustre/share_data/lazyllm/models source ~/ENV/env.sh - python -m pytest --lf --last-failed-no-failures=all --reruns=2 -v tests/charge_tests + python -m pytest --lf --last-failed-no-failures=all --durations=0 --reruns=2 -v tests/charge_tests