Skip to content

Commit 983e067

Browse files
Comment Action (#91)
1 parent a5bcd9c commit 983e067

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/checks.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,25 @@ jobs:
2929
DB_DSN=postgresql://postgres@localhost:5432/postgres alembic upgrade head
3030
- name: Build coverage file
3131
run: |
32-
DB_DSN=postgresql://postgres@localhost:5432/postgres pytest --cache-clear --showlocals --cov=calendar_backend tests > pytest-coverage.txt
32+
DB_DSN=postgresql://postgres@localhost:5432/postgres pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=calendar_backend tests/ | tee pytest-coverage.txt
3333
- name: Print report
3434
if: always()
3535
run: |
3636
cat pytest-coverage.txt
37-
- name: Comment coverage
38-
uses: coroo/pytest-coverage-commentator@v1.0.2
37+
- name: Pytest coverage comment
38+
uses: MishaKav/pytest-coverage-comment@main
39+
with:
40+
pytest-coverage-path: ./pytest-coverage.txt
41+
title: Coverage Report
42+
badge-title: Code Coverage
43+
hide-badge: false
44+
hide-report: false
45+
create-new-comment: false
46+
hide-comment: false
47+
report-only-changed-files: false
48+
remove-link-from-badge: false
49+
junitxml-path: ./pytest.xml
50+
junitxml-title: Summary
3951
linting:
4052
runs-on: ubuntu-latest
4153
steps:

0 commit comments

Comments
 (0)