diff --git a/.github/workflows/lint-test-cover-docs.yml b/.github/workflows/lint-test-cover-docs.yml index 6ae495f..a7ffb7d 100644 --- a/.github/workflows/lint-test-cover-docs.yml +++ b/.github/workflows/lint-test-cover-docs.yml @@ -21,6 +21,14 @@ jobs: python -m pylint tinynmc # Check against linting rules. python -m pytest # Run tests. python src/tinynmc/tinynmc.py -v # Run tests via execution. + - name: Publish coverage results. + run: | + pip install -U .[coveralls] + python -m coveralls --service=github # Submit to coveralls. + if: matrix.python-version == '3.11' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} - name: Test auto-generation of documentation. run: | pip install -U .[docs] diff --git a/README.rst b/README.rst index 81aca60..6bc7f0f 100644 --- a/README.rst +++ b/README.rst @@ -4,7 +4,7 @@ tinynmc Minimal pure-Python implementation of a secure multi-party computation (MPC) protocol for evaluating arithmetic sum-of-products expressions via a non-interactive computation phase. -|pypi| |readthedocs| |actions| +|pypi| |readthedocs| |actions| |coveralls| .. |pypi| image:: https://badge.fury.io/py/tinynmc.svg :target: https://badge.fury.io/py/tinynmc @@ -18,6 +18,10 @@ Minimal pure-Python implementation of a secure multi-party computation (MPC) pro :target: https://github.com/nillion-oss/tinynmc/actions/workflows/lint-test-cover-docs.yml :alt: GitHub Actions status. +.. |coveralls| image:: https://coveralls.io/repos/github/nillion-oss/tinynmc/badge.svg?branch=main + :target: https://coveralls.io/github/nillion-oss/tinynmc?branch=main + :alt: Coveralls test coverage summary. + Installation and Usage ----------------------