diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 9fd94df..6c83c2f 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -1,6 +1,6 @@ # This is a basic workflow to help you get started with Actions -name: CI +name: pytest # Controls when the action will run. Triggers the workflow on push or pull request # events but only for the master branch @@ -37,4 +37,10 @@ jobs: # Runs a single command using the runners shell - name: pytest - run: pytest --cov=delta tests + run: pytest --cov=delta --junitxml=test_results.xml tests + - name: Upload pytest test results + uses: actions/upload-artifact@v2 + with: + name: pytest-results + path: test_results.xml + if: ${{ always }} diff --git a/README.md b/README.md index fa6724c..a84cde7 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,10 @@ [docs-image]: https://readthedocs.org/projects/delta-fusion/badge/?version=latest [docs-url]: https://delta-fusion.readthedocs.io/en/latest/?badge=latest +[pytest-url]: https://github.com/rkube/delta/workflows/pytest/badge.svg ------------------------------------------------------------------------------- [![Documentation Status][docs-image]][docs-url] +[![Unit Tests][pytest-url]] **[Documentation](https://delta-fusion.readthedocs.io/en/latest/index.html)