From 8ef3341a472909f223ec0f678f11f136f55c1406 Mon Sep 17 00:00:00 2001 From: RĂ©mi Flamary Date: Thu, 17 Jun 2021 11:46:37 +0200 Subject: [MRG] Speedup tests (#262) * speedup tests * add color to tests and timings * add test unbalanced * stupid missing - --- .github/workflows/build_tests.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '.github') diff --git a/.github/workflows/build_tests.yml b/.github/workflows/build_tests.yml index 92a07b5..fd0ade6 100644 --- a/.github/workflows/build_tests.yml +++ b/.github/workflows/build_tests.yml @@ -40,7 +40,7 @@ jobs: pip install -e . - name: Run tests run: | - python -m pytest -v test/ ot/ --doctest-modules --ignore ot/gpu/ --cov=ot --color=yes + python -m pytest --durations=20 -v test/ ot/ --doctest-modules --ignore ot/gpu/ --cov=ot --color=yes - name: Upload codecov run: | codecov @@ -95,7 +95,7 @@ jobs: pip install -e . - name: Run tests run: | - python -m pytest -v test/ ot/ --ignore ot/gpu/ + python -m pytest --durations=20 -v test/ ot/ --ignore ot/gpu/ --color=yes macos: @@ -122,7 +122,7 @@ jobs: pip install -e . - name: Run tests run: | - python -m pytest -v test/ ot/ --doctest-modules --ignore ot/gpu/ --cov=ot + python -m pytest --durations=20 -v test/ ot/ --doctest-modules --ignore ot/gpu/ --cov=ot --color=yes windows: @@ -150,4 +150,4 @@ jobs: python -m pip install -e . - name: Run tests run: | - python -m pytest -v test/ ot/ --doctest-modules --ignore ot/gpu/ --cov=ot + python -m pytest --durations=20 -v test/ ot/ --doctest-modules --ignore ot/gpu/ --cov=ot --color=yes -- cgit v1.2.3