Skip to content

Commit 02dfaa4

Browse files
Comment Action (#41)
1 parent d86cfaa commit 02dfaa4

2 files changed

Lines changed: 15 additions & 4 deletions

File tree

.github/workflows/checks.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,25 @@ jobs:
3232
make redis
3333
- name: Build coverage file
3434
run: |
35-
pytest --cache-clear --cov=print_service tests > pytest-coverage.txt
35+
DB_DSN=postgresql://postgres@localhost:5432/postgres pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=print_service tests/ | tee pytest-coverage.txt
3636
- name: Print report
3737
if: always()
3838
run: |
3939
cat pytest-coverage.txt
40-
- name: Comment coverage
41-
uses: coroo/pytest-coverage-commentator@v1.0.2
40+
- name: Pytest coverage comment
41+
uses: MishaKav/pytest-coverage-comment@main
42+
with:
43+
pytest-coverage-path: ./pytest-coverage.txt
44+
title: Coverage Report
45+
badge-title: Code Coverage
46+
hide-badge: false
47+
hide-report: false
48+
create-new-comment: false
49+
hide-comment: false
50+
report-only-changed-files: false
51+
remove-link-from-badge: false
52+
junitxml-path: ./pytest.xml
53+
junitxml-title: Summary
4254
linting:
4355
runs-on: ubuntu-latest
4456
steps:

requirements.dev.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ httpx
77
pytest-cov
88
pytest-mock
99
autoflake
10-
isort

0 commit comments

Comments
 (0)