diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index ca05cde57..830fcc30a 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -53,7 +53,7 @@ jobs: - name: Check for dead code run: make dead-code - name: Run tests with coverage - run: poetry run coverage run --omit=*/notifications_utils/* -m pytest --maxfail=10 + run: poetry run coverage run --omit=*/notifications_utils/*,*/migrations/* -m pytest --maxfail=10 env: SQLALCHEMY_DATABASE_TEST_URI: postgresql://user:password@localhost:5432/test_notification_api NOTIFY_E2E_TEST_EMAIL: ${{ secrets.NOTIFY_E2E_TEST_EMAIL }} @@ -62,7 +62,7 @@ jobs: NOTIFY_E2E_TEST_PASSWORD: ${{ secrets.NOTIFY_E2E_TEST_PASSWORD }} - name: Check coverage threshold # TODO get this back up to 95 - run: poetry run coverage report --fail-under=87 + run: poetry run coverage report --fail-under=95 validate-new-relic-config: runs-on: ubuntu-latest diff --git a/Makefile b/Makefile index 6574c6181..9cb8bdac9 100644 --- a/Makefile +++ b/Makefile @@ -81,7 +81,8 @@ test: ## Run tests and create coverage report poetry run black . poetry run flake8 . poetry run isort --check-only ./app ./tests - poetry run coverage run -m pytest --maxfail=10 + poetry run coverage run --omit=*/notifications_utils/*,*/migrations/* -m pytest --maxfail=10 + poetry run coverage report -m --fail-under=95 poetry run coverage html -d .coverage_cache