Skip to content

Commit 451eac8

Browse files
committed
test coverage
1 parent aa7df8d commit 451eac8

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,17 @@ jobs:
5353
curl -LsSf https://astral.sh/uv/install.sh | sh
5454
uv sync --all-extras --frozen --no-install-project
5555
uv run alembic upgrade head
56-
uv run pytest
56+
uv run pytest . --cov=. --cov-report xml
5757
env:
5858
ENVIRONMENT: dev
5959
PYTHONDONTWRITEBYTECODE: 1
6060
PYTHONUNBUFFERED: 1
6161
DB_HOST: 127.0.0.1
62+
- name: Upload coverage to Codecov
63+
uses: codecov/[email protected]
64+
env:
65+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
66+
with:
67+
files: ./coverage.xml
68+
flags: unittests
69+
name: codecov-${{ matrix.python-version }}

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
## Async template on FastAPI and SQLAlchemy 2
22

3+
[![Test Coverage](https://codecov.io/gh/modern-python/fastapi-sqlalchemy-template/branch/main/graph/badge.svg)](https://codecov.io/gh/modern-python/fastapi-sqlalchemy-template)
34
[![GitHub issues](https://img.shields.io/github/issues/modern-python/fastapi-sqlalchemy-template)](https://github.com/modern-python/fastapi-sqlalchemy-template/issues)
45
[![GitHub forks](https://img.shields.io/github/forks/modern-python/fastapi-sqlalchemy-template)](https://github.com/modern-python/fastapi-sqlalchemy-template/network)
56
[![GitHub stars](https://img.shields.io/github/stars/modern-python/fastapi-sqlalchemy-template)](https://github.com/modern-python/fastapi-sqlalchemy-template/stargazers)
6-
[![GitHub license](https://img.shields.io/github/license/modern-python/fastapi-sqlalchemy-template)](https://github.com/modern-python/fastapi-sqlalchemy-template/blob/main/LICENSE)
77

88
### Description
99
Production-ready dockerized async REST API on FastAPI with SQLAlchemy and PostgreSQL

0 commit comments

Comments
 (0)