Skip to content

Commit 7b1d3f3

Browse files
author
Eugene Shershen
committed
add codecov
1 parent 860e6f6 commit 7b1d3f3

3 files changed

Lines changed: 17 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,13 @@ jobs:
5656
python -m pip install --upgrade pip wheel
5757
pip install -e ".[dev]"
5858
59-
- name: Run unittest
60-
run: python -m unittest discover -s tests -p "test_*.py" -v
59+
- name: Run pytest
60+
run: python -m pytest tests/ -v
61+
62+
- name: Upload coverage reports to Codecov
63+
uses: codecov/codecov-action@v5
64+
with:
65+
token: ${{ secrets.CODECOV_TOKEN }}
6166

6267
lint:
6368
name: lint

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
# psqlpy-sqlalchemy
2+
[![ci](https://img.shields.io/badge/Support-Ukraine-FFD500?style=flat&labelColor=005BBB)](https://img.shields.io/badge/Support-Ukraine-FFD500?style=flat&labelColor=005BBB)
3+
[![ci](https://github.com/h0rn3t/fastapi-async-sqlalchemy/workflows/ci/badge.svg)](https://github.com/h0rn3t/psqlpy_sqlalchemy/workflows/ci/badge.svg)
4+
[![codecov](https://codecov.io/gh/h0rn3t/psqlpy_sqlalchemy/branch/main/graph/badge.svg?token=F4NJ34WKPY)](https://codecov.io/gh/h0rn3t/psqlpy_sqlalchemy)
5+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6+
[![pip](https://img.shields.io/pypi/v/fastapi_async_sqlalchemy?color=blue)](https://pypi.org/project/fastapi-async-sqlalchemy/)
7+
[![Downloads](https://static.pepy.tech/badge/fastapi-async-sqlalchemy)](https://pepy.tech/project/fastapi-async-sqlalchemy)
8+
[![Updates](https://pyup.io/repos/github/h0rn3t/fastapi-async-sqlalchemy/shield.svg)](https://pyup.io/repos/github/h0rn3t/fastapi-async-sqlalchemy/)
29

310
SQLAlchemy dialect for [psqlpy](https://github.com/qaspen-python/psqlpy) - a fast PostgreSQL driver for Python.
411

12+
13+
514
## Overview
615

716
This package provides a SQLAlchemy dialect that allows you to use psqlpy as the underlying PostgreSQL driver. psqlpy is a high-performance PostgreSQL driver built on top of Rust's tokio-postgres, offering excellent performance characteristics.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ dev = [
3939
"ruff>=0.1.0",
4040
"mypy>=1.0.0",
4141
"sqlmodel>=0.0.8",
42+
"pytest-cov",
4243
]
4344

4445
[project.urls]

0 commit comments

Comments
 (0)