File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff line change 77pytest-cov
88pytest-mock
99autoflake
10- isort
You can’t perform that action at this time.
0 commit comments