diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 31aec9e..37f40ed 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -1,4 +1,4 @@ -name: Python application +name: EduNet on: push: @@ -50,6 +50,13 @@ jobs: run: | poetry run tox -e py${{ env.py_version }} + - name: Upload coverage reports to Codecov + if: github.ref == 'refs/heads/main' # Only run this step if it's the main branch + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + slug: idjaw/edunet + build: runs-on: ubuntu-latest needs: test diff --git a/CHANGELOG.md b/CHANGELOG.md index f48a6b3..ae252ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +* Adds Codecov badge and uploading to Codecov [#20](https://github.com/idjaw/edunet/issues/20) + ## 0.2.1 * Supports tox running multiple Python versions: 3.9, 3.10, 3.11, 3.12 [#15](https://github.com/idjaw/edunet/issues/15) diff --git a/README.md b/README.md index 91a947b..d29674c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ +[![codecov](https://codecov.io/gh/idjaw/edunet/graph/badge.svg?token=5MZIOFVHA9)](https://codecov.io/gh/idjaw/edunet) +![PyPI - Version](https://img.shields.io/pypi/v/edunet) +![PyPI - Python Version](https://img.shields.io/pypi/pyversions/edunet) +[![EduNet](https://github.com/idjaw/edunet/actions/workflows/python-app.yml/badge.svg?branch=main)](https://github.com/idjaw/edunet/actions/workflows/python-app.yml) + # EduNet This application allows you to simulate different network operations in a simple plug-in manner.