From 207fcd4054eac824a9b39e10445690e0b12c3c78 Mon Sep 17 00:00:00 2001 From: Mike Gerber Date: Fri, 4 Aug 2023 17:30:26 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20GitHub=20Actions:=20Test=20repor?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4feb289..53783e6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,4 +24,23 @@ jobs: done - name: Test - run: cd src && python3 -m pytest + run: | + cd src + mkdir -p ../test-results + python3 -m pytest --junitxml=../test-results/junit.xml -o junit_family=legacy + - name: Upload test results + uses: actions/upload-artifact@v2 + if: success() || failure() + with: + name: test-results + path: test-results + report: + runs-on: ubuntu-latest + needs: test + steps: + - uses: dorny/test-reporter@v1 + with: + artifact: test-results + name: Tests + path: 'test-results/*.xml' + reporter: junit