diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index a9559c5d..8915bb3d 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -29,13 +29,25 @@ jobs: DB_DSN=postgresql://postgres@localhost:5432/postgres alembic upgrade head - name: Build coverage file run: | - DB_DSN=postgresql://postgres@localhost:5432/postgres pytest --cache-clear --showlocals --cov=calendar_backend tests > pytest-coverage.txt + 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 - name: Print report if: always() run: | cat pytest-coverage.txt - - name: Comment coverage - uses: coroo/pytest-coverage-commentator@v1.0.2 + - name: Pytest coverage comment + uses: MishaKav/pytest-coverage-comment@main + with: + pytest-coverage-path: ./pytest-coverage.txt + title: Coverage Report + badge-title: Code Coverage + hide-badge: false + hide-report: false + create-new-comment: false + hide-comment: false + report-only-changed-files: false + remove-link-from-badge: false + junitxml-path: ./pytest.xml + junitxml-title: Summary linting: runs-on: ubuntu-latest steps: