From fdcf589cf17b2ba50e1585a8c33cc1f1b9562f10 Mon Sep 17 00:00:00 2001 From: Chun Cai Date: Thu, 20 Mar 2025 17:36:12 +0800 Subject: [PATCH] CI: remove duration flag from pytest commands in workflows --- .github/workflows/test_cuda.yml | 2 +- .github/workflows/test_python.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test_cuda.yml b/.github/workflows/test_cuda.yml index 47e129d2b4..6553249570 100644 --- a/.github/workflows/test_cuda.yml +++ b/.github/workflows/test_cuda.yml @@ -58,7 +58,7 @@ jobs: DP_ENABLE_NATIVE_OPTIMIZATION: 1 DP_ENABLE_PYTORCH: 1 - run: dp --version - - run: python -m pytest source/tests --durations=0 + - run: python -m pytest source/tests env: NUM_WORKERS: 0 CUDA_VISIBLE_DEVICES: 0 diff --git a/.github/workflows/test_python.yml b/.github/workflows/test_python.yml index ef5124bc19..91d950e07d 100644 --- a/.github/workflows/test_python.yml +++ b/.github/workflows/test_python.yml @@ -55,11 +55,11 @@ jobs: restore-keys: | test2-durations-combined-${{ matrix.python }}-${{ github.sha }} test2-durations-combined-${{ matrix.python }} - - run: pytest --cov=deepmd source/tests --durations=0 --splits 6 --group ${{ matrix.group }} --store-durations --clean-durations --durations-path=.test_durations --splitting-algorithm least_duration + - run: pytest --cov=deepmd source/tests --splits 6 --group ${{ matrix.group }} --store-durations --clean-durations --durations-path=.test_durations --splitting-algorithm least_duration env: NUM_WORKERS: 0 - name: Test TF2 eager mode - run: pytest --cov=deepmd --cov-append source/tests/consistent/io/test_io.py source/jax2tf_tests --durations=0 + run: pytest --cov=deepmd --cov-append source/tests/consistent/io/test_io.py source/jax2tf_tests env: NUM_WORKERS: 0 DP_TEST_TF2_ONLY: 1