Skip to content

Commit

Permalink
test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
lesnik512 committed Sep 2, 2024
1 parent 209a5c3 commit 2941979
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,17 @@ jobs:
curl -LsSf https://astral.sh/uv/install.sh | sh
uv sync --all-extras --frozen --no-install-project
uv run alembic upgrade head
uv run pytest
uv run pytest . --cov=. --cov-report xml
env:
ENVIRONMENT: dev
PYTHONDONTWRITEBYTECODE: 1
PYTHONUNBUFFERED: 1
DB_HOST: 127.0.0.1
- name: Upload coverage to Codecov
uses: codecov/[email protected]
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./coverage.xml
flags: unittests
name: codecov-${{ matrix.python-version }}
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
## Async template on LiteStar and SQLAlchemy 2

[![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)
[![GitHub issues](https://img.shields.io/github/issues/modern-python/litestar-sqlalchemy-template)](https://github.com/modern-python/litestar-sqlalchemy-template/issues)
[![GitHub forks](https://img.shields.io/github/forks/modern-python/litestar-sqlalchemy-template)](https://github.com/modern-python/litestar-sqlalchemy-template/network)
[![GitHub stars](https://img.shields.io/github/stars/modern-python/litestar-sqlalchemy-template)](https://github.com/modern-python/litestar-sqlalchemy-template/stargazers)
[![GitHub license](https://img.shields.io/github/license/modern-python/litestar-sqlalchemy-template)](https://github.com/modern-python/litestar-sqlalchemy-template/blob/main/LICENSE)

### Description
Production-ready dockerized async REST API on LiteStar with SQLAlchemy and PostgreSQL
Expand Down

0 comments on commit 2941979

Please sign in to comment.