Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added coverage for PR #113

Merged
merged 5 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,19 @@ jobs:
- name: Install dependencies
run: uv venv && uv pip install .[test]
- name: Test with pytest
run: source .venv/bin/activate && pytest
run: source .venv/bin/activate && pytest --cov-report "xml:coverage.xml" --cov=shvatka tests/
- name: Coverage comment
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-xml-coverage-path: ./coverage.xml
title: Let's see coverage
badge-title: coverage
hide-badge: false
hide-report: false
create-new-comment: false
hide-comment: false
report-only-changed-files: false
remove-link-from-badge: false
docs:
needs: [build]
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ test = [
"pytest>=7.2.0,<8.0",
"pytest-ordering>=0.6,<0.7",
"pytest-asyncio>=0.18.3,<0.19",
"pytest-cov",
"testcontainers>=4.5.1,<5.0",
"httpx>=0.23.0,<0.24.0",
"coverage[toml]",
Expand Down
Loading