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'
|
if: matrix.python-version == '3.11'
|
||||||
run: mypy fittrackee
|
run: mypy fittrackee
|
||||||
- name: Pytest
|
- 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:
|
postgresql:
|
||||||
name: postgresql ${{ matrix.psql-version }} (python 3.11)
|
name: postgresql ${{ matrix.psql-version }} (python 3.11)
|
||||||
@ -84,7 +84,7 @@ jobs:
|
|||||||
poetry config virtualenvs.create false
|
poetry config virtualenvs.create false
|
||||||
poetry install --no-interaction --quiet
|
poetry install --no-interaction --quiet
|
||||||
- name: Pytest
|
- 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:
|
end2end:
|
||||||
name: e2e tests
|
name: e2e tests
|
||||||
@ -129,7 +129,7 @@ jobs:
|
|||||||
export TEST_APP_URL=http://$(hostname --ip-address):5000
|
export TEST_APP_URL=http://$(hostname --ip-address):5000
|
||||||
sleep 5
|
sleep 5
|
||||||
nohup flask worker --processes=1 >> nohup.out 2>&1 &
|
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:
|
end2end_package:
|
||||||
name: e2e tests with package
|
name: e2e tests with package
|
||||||
@ -182,7 +182,7 @@ jobs:
|
|||||||
export TEST_APP_URL=http://$(hostname --ip-address):5000
|
export TEST_APP_URL=http://$(hostname --ip-address):5000
|
||||||
sleep 5
|
sleep 5
|
||||||
nohup flask worker --processes=1 >> nohup.out 2>&1 &
|
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:
|
end2end_package_update:
|
||||||
name: e2e tests after update
|
name: e2e tests after update
|
||||||
@ -239,4 +239,4 @@ jobs:
|
|||||||
export TEST_APP_URL=http://$(hostname --ip-address):5000
|
export TEST_APP_URL=http://$(hostname --ip-address):5000
|
||||||
sleep 5
|
sleep 5
|
||||||
nohup flask worker --processes=1 >> nohup.out 2>&1 &
|
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