CI - stop job w/ pytest on first failure
This commit is contained in:
parent
b18ad20f21
commit
172faf48d6
10
.github/workflows/.tests-python.yml
vendored
10
.github/workflows/.tests-python.yml
vendored
@ -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
|
||||
pytest e2e --driver Remote --capability browserName firefox --selenium-host selenium --selenium-port 4444 --maxfail=1
|
Loading…
Reference in New Issue
Block a user