Add test reporter (#1242)

* Add test reporter

* Fix indendation

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Hood Chatham
2023-03-02 13:38:51 +01:00
committed by GitHub
parent 8665a14dec
commit 4588e90226
3 changed files with 26 additions and 0 deletions

View File

@@ -76,6 +76,13 @@ jobs:
if-no-files-found: error
retention-days: 7
- uses: actions/upload-artifact@v3
if: success() || failure()
with:
name: test_results
path: test_results
Deploy:
runs-on: ubuntu-latest
needs: BuildAndTest

16
.github/workflows/test_report.yml vendored Normal file
View File

@@ -0,0 +1,16 @@
name: Test Report
on:
workflow_run:
workflows: ['[CI] Build Unstable']
types:
- completed
jobs:
report:
runs-on: ubuntu-latest
steps:
- uses: dorny/test-reporter@v1.6.0
with:
artifact: test_results
name: Test reports
path: '*.xml'
reporter: java-junit

3
.gitignore vendored
View File

@@ -138,3 +138,6 @@ dmypy.json
node_modules/
coverage/
# junit xml for test results
test_results