From 5da742ad586f3cddf87dfbfa81e132a7e5cf21ae Mon Sep 17 00:00:00 2001 From: Ben Donnelly Date: Mon, 19 Feb 2024 18:17:22 +0000 Subject: [PATCH 1/2] chore(build): add test report action to build --- .github/workflows/on_push.yaml | 18 ++++++++++++++++++ Makefile | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/on_push.yaml b/.github/workflows/on_push.yaml index b9ab188..71234cb 100644 --- a/.github/workflows/on_push.yaml +++ b/.github/workflows/on_push.yaml @@ -42,6 +42,24 @@ jobs: pip install -r dev-requirements.txt - run: | make coverage + continue-on-error: true + + - name: Test Report + uses: dorny/test-reporter@v1.8.0 + if: success() || failure() + continue-on-error: true + with: + name: GO Tests + path: report.xml + reporter: java-junit + + - name: Test Summary + uses: test-summary/action@v2 + with: + paths: | + report.xml + if: success() || failure() + continue-on-error: true tests: runs-on: ubuntu-latest diff --git a/Makefile b/Makefile index 80f385c..c99c6b3 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ it-test: .PHONY: coverage coverage: - pytest tests/unit_tests --cov=deep --cov-report term --cov-fail-under=84 --cov-report html --cov-branch + pytest tests/unit_tests --cov=deep --cov-report term --cov-fail-under=84 --cov-report html --cov-branch --junitxml=report.xml .PHONY: lint lint: From b61e33e982d39232af2f9bde5d3e17a7f4d4af4d Mon Sep 17 00:00:00 2001 From: Ben Donnelly Date: Mon, 19 Feb 2024 18:27:58 +0000 Subject: [PATCH 2/2] Update .github/workflows/on_push.yaml --- .github/workflows/on_push.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/on_push.yaml b/.github/workflows/on_push.yaml index 71234cb..4f7c6e6 100644 --- a/.github/workflows/on_push.yaml +++ b/.github/workflows/on_push.yaml @@ -49,7 +49,7 @@ jobs: if: success() || failure() continue-on-error: true with: - name: GO Tests + name: Python Tests path: report.xml reporter: java-junit