Skip to content

Commit ddaf918

Browse files
authored
chore: configure codecov runner (#16)
* chore: update readme.md Added badges for GitHub checks, Actions, Read the Docs, and PyPI. * ci: add codecov upload action * chore: update readme badges Added Codecov badge to README and removed implementation badge.
1 parent 0e2efdf commit ddaf918

File tree

4 files changed

+104
-2
lines changed

4 files changed

+104
-2
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,10 @@ jobs:
3131
- name: Install Dependencies
3232
run: uv sync --locked --all-extras
3333

34-
- name: Run Pytest
35-
run: uv run pytest
34+
- name: Run Pytest and Coverage
35+
run: uv run pytest --cov --cov-branch --cov-report=xml
36+
37+
- name: Upload coverage reports to Codecov
38+
uses: codecov/codecov-action@v5
39+
with:
40+
token: ${{ secrets.CODECOV_TOKEN }}

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# fastapi-async-storages
22

3+
![GitHub branch check runs](https://img.shields.io/github/check-runs/stabldev/fastapi-async-storages/main?style=flat-square)
4+
![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/stabldev/fastapi-async-storages/release.yml?style=flat-square)
5+
![Read the Docs](https://img.shields.io/readthedocs/fastapi-async-storages?style=flat-square)
6+
![Codecov](https://img.shields.io/codecov/c/github/stabldev/fastapi-async-storages?style=flat-square)
7+
![PyPI - Version](https://img.shields.io/pypi/v/fastapi-async-storages?style=flat-square)
8+
39
A powerful, extensible, and async-ready cloud object storage backend for FastAPI.
410

511
> Drop-in, plug-and-play cloud storage for your FastAPI apps; with full async support.\

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ dev = [
2626
"pytest>=8.4.2",
2727
"pytest-aioboto3>=0.6.0",
2828
"pytest-asyncio>=1.2.0",
29+
"pytest-cov>=7.0.0",
2930
"sqlalchemy>=2.0.44",
3031
]
3132

0 commit comments

Comments
 (0)