From 172faf48d65a397a7d7c3a3eb1f45907babc4a1e Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 4 Oct 2023 10:32:10 +0200 Subject: [PATCH] CI - stop job w/ pytest on first failure --- .github/workflows/.tests-python.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/.tests-python.yml b/.github/workflows/.tests-python.yml index 926dd18a..fce20dc2 100644 --- a/.github/workflows/.tests-python.yml +++ b/.github/workflows/.tests-python.yml @@ -54,7 +54,7 @@ jobs: if: matrix.python-version == '3.11' run: mypy fittrackee - name: Pytest - run: pytest fittrackee -p no:warnings --cov fittrackee --cov-report term-missing + run: pytest fittrackee -p no:warnings --cov fittrackee --cov-report term-missing --maxfail=1 postgresql: name: postgresql ${{ matrix.psql-version }} (python 3.11) @@ -84,7 +84,7 @@ jobs: poetry config virtualenvs.create false poetry install --no-interaction --quiet - name: Pytest - run: pytest fittrackee -p no:warnings --cov fittrackee --cov-report term-missing + run: pytest fittrackee -p no:warnings --cov fittrackee --cov-report term-missing --maxfail=1 end2end: name: e2e tests @@ -129,7 +129,7 @@ jobs: export TEST_APP_URL=http://$(hostname --ip-address):5000 sleep 5 nohup flask worker --processes=1 >> nohup.out 2>&1 & - pytest e2e --driver Remote --capability browserName firefox --selenium-host selenium --selenium-port 4444 + pytest e2e --driver Remote --capability browserName firefox --selenium-host selenium --selenium-port 4444 --maxfail=1 end2end_package: name: e2e tests with package @@ -182,7 +182,7 @@ jobs: export TEST_APP_URL=http://$(hostname --ip-address):5000 sleep 5 nohup flask worker --processes=1 >> nohup.out 2>&1 & - pytest e2e --driver Remote --capability browserName firefox --selenium-host selenium --selenium-port 4444 + pytest e2e --driver Remote --capability browserName firefox --selenium-host selenium --selenium-port 4444 --maxfail=1 end2end_package_update: name: e2e tests after update @@ -239,4 +239,4 @@ jobs: export TEST_APP_URL=http://$(hostname --ip-address):5000 sleep 5 nohup flask worker --processes=1 >> nohup.out 2>&1 & - pytest e2e --driver Remote --capability browserName firefox --selenium-host selenium --selenium-port 4444 \ No newline at end of file + pytest e2e --driver Remote --capability browserName firefox --selenium-host selenium --selenium-port 4444 --maxfail=1 \ No newline at end of file