From 67c798e66e036b6fd9b1bb283b8b0ab618b6c629 Mon Sep 17 00:00:00 2001 From: alparamonov Date: Sun, 14 Jun 2020 01:57:19 +0200 Subject: [PATCH] posting test results --- .github/workflows/python-package.yml | 10 ++++++++-- .gitignore | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index ae28b3b..58d46a2 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -38,5 +38,11 @@ jobs: run: | pip install -e . - name: Test with pytest - run: | - pytest + run: pytest --doctest-modules --junitxml=junit/test-results-${{ matrix.python-version }}.xml + - name: Upload pytest test results + uses: actions/upload-artifact@v1 + with: + name: pytest-results-${{ matrix.python-version }} + path: junit/test-results-${{ matrix.python-version }}.xml + # Use always() to always run this step to publish test results when there are test failures + if: ${{ always() }} diff --git a/.gitignore b/.gitignore index 59ffeb8..dee63cc 100644 --- a/.gitignore +++ b/.gitignore @@ -53,6 +53,7 @@ coverage.xml .hypothesis/ .pytest_cache/ cover/ +junit/ # Translations *.mo