Skip to content

Commit 2941979

Browse files
committed
test coverage
1 parent 209a5c3 commit 2941979

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/main.yml

+9-1
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
## Async template on LiteStar and SQLAlchemy 2
22

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

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

0 commit comments

Comments
 (0)