Skip to content
Merged
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI

on:
workflow_dispatch:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 📥 checkout
uses: actions/checkout@v4
- name: 🐍 setup python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: ⚡️ setup uv
uses: astral-sh/setup-uv@v2
with:
version: "latest"
enable-cache: true
cache-suffix: 2024-09-08 09:10
cache-dependency-glob: |
pyproject.toml
uv.lock
- name: ⚡️ uv sync
run: uv sync
- name: 🧪 pytest
run: uv run pytest --cov fastapi_async_sqla --cov-report=term-missing --cov-report=xml
- name: "🐔 codecov: upload test coverage"
uses: codecov/codecov-action@v4.2.0
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

![PyPI](https://img.shields.io/pypi/v/fastapi-async-sqla)
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-brightgreen.svg)](https://conventionalcommits.org)
[![codecov](https://codecov.io/gh/hadrien/fastapi-async-sqla/graph/badge.svg?token=XK3YT60MWK)](https://codecov.io/gh/hadrien/fastapi-async-sqla)

FastAPI-Async-SQLA is an extension for [FastAPI] that eases the setup of async
[SQLAlchemy] session and provides support for pagination.
FastAPI-Async-SQLA is an [SQLAlchemy] extension for [FastAPI]. It supports asynchronous
SQLAlchemy sessions using SQLAlchemy >= 2.0 and provides pagination support.

# Installing

Expand Down
Loading