Skip to content

Commit fd27c0e

Browse files
committed
test coverage
1 parent 3eed532 commit fd27c0e

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,12 @@ jobs:
3838
python-version: ${{ matrix.python-version }}
3939
- uses: extractions/setup-just@v2
4040
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
41-
- run: just install tests
41+
- run: just install tests . --cov=. --cov-report xml
42+
- name: Upload coverage to Codecov
43+
uses: codecov/codecov-action@v4.0.1
44+
env:
45+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
46+
with:
47+
files: ./coverage.xml
48+
flags: unittests
49+
name: codecov-${{ matrix.python-version }}

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
FastAPI versioning library
22
==
3-
[![PyPI version](https://badge.fury.io/py/fast-version.svg)](https://pypi.python.org/pypi/fast-version)
3+
[![Test Coverage](https://codecov.io/gh/community-of-python/fast-version/branch/main/graph/badge.svg)](https://codecov.io/gh/community-of-python/fast-version)
44
[![Supported versions](https://img.shields.io/pypi/pyversions/fast-version.svg)](https://pypi.python.org/pypi/fast-version)
55
[![downloads](https://img.shields.io/pypi/dm/fast-version.svg)](https://pypistats.org/packages/fast-version)
6-
[![GitHub license](https://img.shields.io/github/license/modern-python/fast-version)](https://github.com/modern-python/fast-version/blob/main/LICENSE)
7-
[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/modern-python/fast-version/python-package.yml)](https://github.com/modern-python/fast-version/actions)
86
[![GitHub stars](https://img.shields.io/github/stars/modern-python/fast-version)](https://github.com/modern-python/fast-version/stargazers)
97

108
<img src="./logo.svg" width="250" />

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ requires-python = ">=3.10,<4"
99
license = "MIT"
1010
keywords = ["fastapi", "versioning", "accept-header"]
1111
classifiers = [
12-
"Development Status :: 4 - Beta",
13-
"Natural Language :: English",
14-
"Programming Language :: Python :: Implementation :: CPython",
12+
"Programming Language :: Python :: 3.10",
13+
"Programming Language :: Python :: 3.11",
14+
"Programming Language :: Python :: 3.12",
1515
"Typing :: Typed",
16+
"Topic :: Software Development :: Libraries",
1617
]
1718
dynamic = ["version"]
1819
dependencies = [

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)