Skip to content

Commit 8a99632

Browse files
committed
codecov added
1 parent d68de81 commit 8a99632

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
pull_request:
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
tox:
912
name: Python ${{ matrix.python-version }} / ${{ matrix.toxenv }}
@@ -39,6 +42,15 @@ jobs:
3942
- name: Run tests via tox
4043
run: tox -e ${{ matrix.toxenv }}
4144

45+
- name: Upload coverage to Codecov
46+
uses: codecov/codecov-action@v5
47+
with:
48+
files: ./coverage.xml
49+
flags: unittests
50+
name: python-${{ matrix.python-version }}
51+
fail_ci_if_error: false
52+
token: ${{ secrets.CODECOV_TOKEN }}
53+
4254
- name: Upload coverage artifact
4355
if: always()
4456
uses: actions/upload-artifact@v4

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
FastAPI Observer provides structured logging and observability helpers for FastAPI applications.
44

55
[![Test](https://github.com/MehrazRumman/fastapi-observer/actions/workflows/tests.yml/badge.svg)](https://github.com/MehrazRumman/fastapi-observer/actions/workflows/tests.yml)
6-
[![coverage](https://img.shields.io/badge/coverage-pending-lightgrey?logo=pytest)](#tests-and-coverage)
6+
[![coverage](https://codecov.io/gh/MehrazRumman/fastapi-observer/graph/badge.svg)](https://codecov.io/gh/MehrazRumman/fastapi-observer)
77
[![pypi package](https://img.shields.io/pypi/v/fastapi-observer?logo=pypi&label=pypi%20package)](https://pypi.org/project/fastapi-observer/)
88
[![python](https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13%20%7C%203.14-brightgreen?logo=python&logoColor=white)](#python-compatibility)
99

0 commit comments

Comments
 (0)