Added fail coverage threshold under 50%

This commit is contained in:
Andrew Shumway
2023-04-18 13:51:48 -06:00
parent d8c5c29d2d
commit 1047b70792
2 changed files with 6 additions and 4 deletions

View File

@@ -46,8 +46,10 @@ jobs:
run: pipenv run flake8 .
- name: Check imports alphabetized
run: pipenv run isort --check-only ./app ./tests
- name: Run tests
run: pipenv run pytest -n4 --maxfail=10
- name: Run tests with coverage
run: pipenv run coverage run --omit=*/notifications_utils/* -m pytest -n4 --maxfail=10
- name: Check coverage threshold
run: pipenv run coverage report --fail-under=50
env:
SQLALCHEMY_DATABASE_TEST_URI: postgresql://user:password@localhost:5432/test_notification_api