Skip to content

Commit

Permalink
Add coverage report to unit tests (conda-incubator#923)
Browse files Browse the repository at this point in the history
  • Loading branch information
soapy1 authored Oct 25, 2024
1 parent ed9b597 commit 15e0b4a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/test_conda_store_server_unit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ jobs:
- name: "Unit tests ✅"
run: |
python -m pytest -m "not extended_prefix and not user_journey" tests
python -m pytest -m "not extended_prefix and not user_journey" --cov=conda_store_server tests
- name: "Coverage report"
run: |
coverage report
# https://github.com/actions/runner-images/issues/1052
- name: "Windows extended prefix unit tests ✅"
Expand Down
1 change: 1 addition & 0 deletions conda-store-server/environment-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ dependencies:
- pytest
- pytest-celery
- pytest-mock
- pytest-cov
- docker-py<=7
- docker-compose
# build dependencies
Expand Down
2 changes: 1 addition & 1 deletion conda-store-server/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ dependencies = [
"pytest-playwright",
"twine>=5.0.0",
"pkginfo>=1.10", # Needed to support metadata 2.3

"pytest-cov",
]

[tool.hatch.envs.lint]
Expand Down

0 comments on commit 15e0b4a

Please sign in to comment.