Skip to content

feat: Enhance test workflow with code coverage comments and permissions#815

Closed
Rafi-Microsoft wants to merge 2 commits intomicrosoft:devfrom
Rafi-Microsoft:main
Closed

feat: Enhance test workflow with code coverage comments and permissions#815
Rafi-Microsoft wants to merge 2 commits intomicrosoft:devfrom
Rafi-Microsoft:main

Conversation

@Rafi-Microsoft
Copy link
Copy Markdown
Contributor

Purpose

This pull request updates the GitHub Actions workflow for testing to improve test coverage reporting and permissions. The main changes are the addition of a coverage comment bot to post reports on pull requests, and the necessary permissions for it to function.

Workflow improvements:

  • Added the pull-requests: write permission to the workflow to allow posting comments on pull requests.
  • Integrated the MishaKav/pytest-coverage-comment GitHub Action to automatically post Python test coverage and unit test results as comments on pull requests.

Test reporting enhancements:

  • Modified the backend test step to generate a JUnit XML report (--junitxml=pytest.xml) for enhanced test result reporting.

Does this introduce a breaking change?

  • Yes
  • No

Roopan-Microsoft and others added 2 commits April 13, 2026 11:08
- Add pull-requests: write permission
- Add JUnit XML output (--junitxml) to pytest command
- Add MishaKav/pytest-coverage-comment step (pinned by SHA)
- Gate comment on PR events, non-fork PRs, and test existence

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants