Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report pytest results back to Github #97

Open
volcacius opened this issue Apr 4, 2020 · 1 comment
Open

Report pytest results back to Github #97

volcacius opened this issue Apr 4, 2020 · 1 comment
Assignees
Labels
infrastructure Anything related to CI/CD tests Anything related to tests

Comments

@volcacius
Copy link
Contributor

volcacius commented Apr 4, 2020

Currently Github Actions don't support any standardized way to report back test results. It should be doable to it manually by exporting to junit xml format and then calling appropriate Github APIs.
In particular, it would be nice if we could link a test failure back to the line of code that caused it.

References:
https://github.community/t5/GitHub-Actions/Reporting-Summary-of-test-failures/td-p/36868
https://tryexceptpass.org/article/pytest-github-integration/
https://stackoverflow.com/questions/60126813/github-actions-report-dotnet-test-result-as-annotations
https://github.com/pytorch/add-annotations-github-action

@volcacius volcacius added infrastructure Anything related to CI/CD tests Anything related to tests labels Apr 4, 2020
@volcacius
Copy link
Contributor Author

Reporting back to sphinx might be an option with https://sphinx-test-reports.readthedocs.io/en/latest/ .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Anything related to CI/CD tests Anything related to tests
Projects
None yet
Development

No branches or pull requests

2 participants