From ea708162a559a426c1c44f035883d709fc5dac50 Mon Sep 17 00:00:00 2001 From: Jesse Yang Date: Sun, 3 Apr 2022 16:27:43 -0700 Subject: [PATCH] feat(CI): clean up Python tests output (#19489) --- .github/workflows/superset-python-unittest.yml | 2 +- scripts/python_tests.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/superset-python-unittest.yml b/.github/workflows/superset-python-unittest.yml index 738c6138574b5..64db4d3e649af 100644 --- a/.github/workflows/superset-python-unittest.yml +++ b/.github/workflows/superset-python-unittest.yml @@ -51,7 +51,7 @@ jobs: - name: Python unit tests if: steps.check.outcome == 'failure' run: | - pytest --durations=0 ./tests/common ./tests/unit_tests --cache-clear + pytest --durations-min=0.5 --cov-report= --cov=superset ./tests/common ./tests/unit_tests --cache-clear - name: Upload code coverage if: steps.check.outcome == 'failure' run: | diff --git a/scripts/python_tests.sh b/scripts/python_tests.sh index 36b2b808025c4..0554f8ca65ad9 100755 --- a/scripts/python_tests.sh +++ b/scripts/python_tests.sh @@ -32,4 +32,4 @@ superset init echo "Running tests" -pytest --durations=0 --maxfail=1 --cov=superset "$@" +pytest --durations-min=2 --maxfail=1 --cov-report= --cov=superset "$@"