Skip to content

test results

test results #12816

Workflow file for this run

name: test results
# Post a clean check-run summary per test suite after the pytest workflow finishes.
#
# Replaces the older EnricoMi/publish-unit-test-result-action bot that posted busy
# emoji-table PR comments accumulating across runs. dorny/test-reporter@v2 instead
# posts a single well-formatted check run per suite with a table of passed / failed
# tests, collapsible stack traces for failures, and source-line annotations. No
# PR-comment spam; the result lives in the checks UI and on the "Details" page.
#
# Runs inside a workflow_run triggered by pytest so the downloaded JUnit XML
# artifacts come with the write permissions needed to post check runs from
# forked PRs (where the triggering workflow itself is read-only).
on:
workflow_run:
workflows: ["pytest"]
types:
- completed
permissions:
contents: read
checks: write
actions: read
jobs:
test-results:
name: Test Results
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion != 'skipped'
steps:
- name: Unit Tests report
uses: dorny/test-reporter@v2
with:
artifact: Unit Test Results
name: Unit Tests
path: "*.xml"
reporter: java-junit
fail-on-error: false
list-suites: failed
list-tests: failed
max-annotations: 50
- name: Integration Tests report
uses: dorny/test-reporter@v2
with:
# Six matrix jobs upload artifacts named
# "Integration Test Results (integration_tests_a)" .. _f. Match them all with
# a regex and aggregate into a single report.
artifact: /Integration Test Results .*/
name: Integration Tests
path: "*.xml"
reporter: java-junit
fail-on-error: false
list-suites: failed
list-tests: failed
max-annotations: 50
- name: Distributed Tests report
uses: dorny/test-reporter@v2
with:
artifact: /Distributed Test Results .*/
name: Distributed Tests
path: "*.xml"
reporter: java-junit
fail-on-error: false
list-suites: failed
list-tests: failed
max-annotations: 50