Skip to content

Commit

Permalink
Merge pull request #993 from GSA/notify-api-843
Browse files Browse the repository at this point in the history
bring coverage back up to 95%
  • Loading branch information
ccostino authored May 31, 2024
2 parents a3ef6de + f74d08a commit 67392e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 67392e6

Please sign in to comment.