Skip to content

Commit

Permalink
Adds codecov support
Browse files Browse the repository at this point in the history
- Supports adding the codecov badge to the readme and uploading to codecov
- Supports adding PyPi latest version badge
- Supports adding PyPi supported Python versions badge
- Supports adding latest CI test status in main badge
- Closes #20
  • Loading branch information
idjaw committed Feb 12, 2024
1 parent bc9eb38 commit baec4d9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Python application
name: EduNet

on:
push:
Expand Down Expand Up @@ -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/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: idjaw/edunet

build:
runs-on: ubuntu-latest
needs: test
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down

0 comments on commit baec4d9

Please sign in to comment.