Skip to content

Commit

Permalink
chore: Remove pytest-cov in favor of just coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
sondrelg committed Feb 12, 2022
1 parent 7fbc6dc commit 98acae7
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 24 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ jobs:
- name: Run tests
run: |
source .venv/bin/activate
pytest tests/ --cov=asgi_correlation_id --cov-report=xml
coverage run -m pytest tests
coverage xml
coverage report
- uses: codecov/codecov-action@v2
with:
Expand Down
79 changes: 59 additions & 20 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,16 @@ contextvars = { version = "^2.4", python = "3.6" }
[tool.poetry.dev-dependencies]
pre-commit = "^2.9.2"
pytest = "*"
pytest-cov = "*"
pytest-mock = "*"
sentry-sdk = "*"
pytest-asyncio = "*"
celery = "*"
fastapi = "*"
httpx = "*"
coverage = { extras = ["toml"], version = "^6.1.1", python = "3.10" }
coverage = [
{ extras = ["toml"], version = "^6", python = "3.10" },
{ version = "^5 || ^6", python = ">=3.6!=3.10" },
]
requests = "*"
websockets = "*"
pytest-celery = "*"
Expand Down
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[tool:pytest]
addopts = --cov=asgi_correlation_id --cov-report term-missing
testpaths = tests

[flake8]
Expand Down

0 comments on commit 98acae7

Please sign in to comment.