revert coverage changes

This commit is contained in:
Kenneth Kehl
2024-09-26 14:49:53 -07:00
parent 67467bbedc
commit b4db1b0b2d
3 changed files with 2 additions and 6 deletions

View File

@@ -54,7 +54,7 @@ jobs:
- name: Check for dead code
run: make dead-code
- name: Run tests with coverage
run: poetry run coverage run --omit=*/tests/*,*/notification_utils/*,*/migrations/* -m pytest --maxfail=10
run: poetry run coverage run --omit=*/notification_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 }}

View File

@@ -81,7 +81,7 @@ test: ## Run tests and create coverage report
poetry run black .
poetry run flake8 .
poetry run isort --check-only ./app ./tests
poetry run coverage run --source=*/app/* -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

View File

@@ -106,10 +106,6 @@ sqlalchemy-utils = "^0.41.2"
vulture = "^2.10"
detect-secrets = "^1.5.0"
[tool.coverage.run]
omit = [
"tests/*", # Omit everything in the tests directory
]
[build-system]
requires = ["poetry-core"]