From 4b8c4ca0adc117fcbe99d7f8ded9e8c5d65a4e68 Mon Sep 17 00:00:00 2001 From: Vatsal Jagani Date: Mon, 4 Mar 2024 18:56:03 +0530 Subject: [PATCH] Summarize the Pytest results. --- .github/workflows/py_unit_tests.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/py_unit_tests.yml b/.github/workflows/py_unit_tests.yml index ba6e6e7..1d238ec 100644 --- a/.github/workflows/py_unit_tests.yml +++ b/.github/workflows/py_unit_tests.yml @@ -48,3 +48,18 @@ jobs: path: junit/test-results.xml # Use always() to always run this step to publish test results when there are test failures if: ${{ always() }} + + - name: Surface Test-Results + if: always() + uses: pmeier/pytest-results-action@main + with: + path: junit/test-results.xml + # (Optional) Add a summary of the results at the top of the report + summary: true + # (Optional) Select which results should be included in the report. + # Follows the same syntax as `pytest -r` + display-options: fEX + # (Optional) Fail the workflow if no JUnit XML was found. + fail-on-empty: true + # (Optional) Title of the test results section in the workflow summary + title: Pytest results