From f477252d522407925e8dd0b847a05026183c3a5a Mon Sep 17 00:00:00 2001 From: xavier Date: Mon, 2 Oct 2023 15:23:11 +0200 Subject: [PATCH] Publish unittest results --- .github/workflows/python-tests.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index b8c1ccb..d012dc9 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -44,4 +44,10 @@ jobs: SRID: ${{ secrets.SRID }} run: | cd ${{github.workspace}} - python -m unittest tests + coverage run -m unittest tests + coverage xml -i + - name: Publish Unit Test Results + if: (success() || failure()) && matrix.python-version == '2.7' && github.event_name == 'pull_request' + uses: EnricoMi/publish-unit-test-result-action@v1 + with: + files: ${{github.workspace}}/*.xml