chore: print test runtime (#17770)

* Print test runtime

* revert me

* duration for unit tests as well

* Revert "revert me"

This reverts commit b82d701d65f97ba617c4fc89e0ff56eee74885f2.

Co-authored-by: Bogdan Kyryliuk <bogdankyryliuk@dropbox.com>
This commit is contained in:
Bogdan 2021-12-16 10:33:15 -08:00 committed by GitHub
parent 73ae892066
commit bcd698d999
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ jobs:
- name: Python unit tests
if: steps.check.outcome == 'failure'
run: |
pytest ./tests/unit_tests --cache-clear
pytest --durations=0 ./tests/unit_tests --cache-clear
- name: Upload code coverage
if: steps.check.outcome == 'failure'
run: |

View File

@ -31,4 +31,4 @@ superset db upgrade
superset init
echo "Running tests"
pytest --maxfail=1 --cov=superset $@
pytest --durations=0 --maxfail=1 --cov=superset $@