From 6daee0d643bf7e1cab16dba31fca1b9475fdeb8d Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Sat, 16 Oct 2021 16:12:30 +0200 Subject: [PATCH] ci: use pytest flags --color --exit-first --verbose --- .github/integration-test.py | 2 +- .github/workflows/integration-test.yaml | 2 +- .github/workflows/unit-test.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/integration-test.py b/.github/integration-test.py index 9ea09a8..6ffb5c0 100755 --- a/.github/integration-test.py +++ b/.github/integration-test.py @@ -115,7 +115,7 @@ def run_test(image_name, test_name, bootstrap_pip_spec, test_files, upgrade, ins ) run_container_command( test_name, - '/opt/tljh/hub/bin/python3 -m pytest -v {}'.format( + '/opt/tljh/hub/bin/python3 -m pytest --verbose --maxfail=2 --color=yes {}'.format( ' '.join([os.path.join('/srv/src/integration-tests/', f) for f in test_files]) ) ) diff --git a/.github/workflows/integration-test.yaml b/.github/workflows/integration-test.yaml index e69d517..70ff10e 100644 --- a/.github/workflows/integration-test.yaml +++ b/.github/workflows/integration-test.yaml @@ -23,7 +23,7 @@ jobs: - name: Run bootstrap checks run: | python3 -m pip install pytest - pytest integration-tests/test_bootstrap.py -s + pytest --verbose --maxfail=2 --color=yes --capture=no integration-tests/test_bootstrap.py - name: Run basic tests run: | diff --git a/.github/workflows/unit-test.yaml b/.github/workflows/unit-test.yaml index cabd605..5236762 100644 --- a/.github/workflows/unit-test.yaml +++ b/.github/workflows/unit-test.yaml @@ -34,7 +34,7 @@ jobs: - name: Run unit tests run: | - pytest --cov=tljh tests/ + pytest --verbose --maxfail=2 --color=yes --cov=tljh tests/ - name: Upload code coverage stats run: |