From 4588e902260432cce0f99df3e78cb8a23fef8cc7 Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Thu, 2 Mar 2023 13:38:51 +0100 Subject: [PATCH] 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> --- .github/workflows/build-unstable.yml | 7 +++++++ .github/workflows/test_report.yml | 16 ++++++++++++++++ .gitignore | 3 +++ 3 files changed, 26 insertions(+) create mode 100644 .github/workflows/test_report.yml diff --git a/.github/workflows/build-unstable.yml b/.github/workflows/build-unstable.yml index 7168ff63..3673a168 100644 --- a/.github/workflows/build-unstable.yml +++ b/.github/workflows/build-unstable.yml @@ -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 diff --git a/.github/workflows/test_report.yml b/.github/workflows/test_report.yml new file mode 100644 index 00000000..fa4cf796 --- /dev/null +++ b/.github/workflows/test_report.yml @@ -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 diff --git a/.gitignore b/.gitignore index f73407cf..cc7325e3 100644 --- a/.gitignore +++ b/.gitignore @@ -138,3 +138,6 @@ dmypy.json node_modules/ coverage/ + +# junit xml for test results +test_results