diff --git a/.github/workflows/coverage-report.yml b/.github/workflows/coverage-report.yml new file mode 100644 index 0000000..ab4ec5e --- /dev/null +++ b/.github/workflows/coverage-report.yml @@ -0,0 +1,19 @@ +name: API workflow + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + name: Test coverage + steps: + - uses: actions/checkout@v1 + - name: Install requirements + run: pip install -e .[dev] + - name: Run tests and collect coverage + run: coverage run --source hashtablebot -m unittest discover + - name: Upload coverage reports to Codecov + run: | + curl -Os https://uploader.codecov.io/latest/linux/codecov + chmod +x codecov + ./codecov -t ${CODECOV_TOKEN} diff --git a/README.rst b/README.rst index ea5dc21..1248121 100644 --- a/README.rst +++ b/README.rst @@ -1,6 +1,15 @@ Hash Table Bot ============== +.. image:: https://img.shields.io/pypi/pyversions/hashtablebot + :alt: PyPI - Python Version + +.. image:: https://codecov.io/gh/douglascdev/hashtablebot/branch/main/graph/badge.svg?token=8P7U85055I + :target: https://codecov.io/gh/douglascdev/hashtablebot + +.. image:: https://img.shields.io/badge/code%20style-black-000000.svg + :target: https://github.com/psf/black + Hash Table Bot is an open-source twitch bot made in Python. Have a look at our `Getting Started `_ page for more information.