File tree Expand file tree Collapse file tree 5 files changed +145
-10
lines changed Expand file tree Collapse file tree 5 files changed +145
-10
lines changed Original file line number Diff line number Diff line change 2828 uv sync
2929
3030 - name : Run test
31- run : uv run pytest
31+ run : uv run pytest --cov --cov-report=xml
32+
33+ - name : Upload coverage reports to Codecov
34+ uses : codecov/codecov-action@v5
35+ with :
36+ token : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change 11__pycache__ /
22.pytest_cache /
3- .pdm.toml
4- .pdm-python
5- .pdm-build /
63.env
74.venv
85venv /
96.idea /
107.vscode /
118.ruff_cache /
129dist /
10+ .claude /
11+ .coverage
12+ coverage.xml
Original file line number Diff line number Diff line change @@ -30,12 +30,13 @@ repository = "https://github.com/fastapi-practices/fastapi_oauth20"
3030
3131[dependency-groups ]
3232dev = [
33+ " click==8.2.1" ,
34+ " fastapi>=0.119.0" ,
3335 " pytest>=8.4.0" ,
3436 " pytest-asyncio>=1.2.0" ,
35- " fastapi>=0.119 .0" ,
37+ " pytest-cov>=7.0 .0" ,
3638 " respx>=0.22.0" ,
3739 " ty>=0.0.1a23" ,
38- " click==8.2.1" ,
3940]
4041lint = [
4142 " pre-commit>=4.3.0" ,
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ colorama==0.4.6 ; sys_platform == 'win32'
2020 # via
2121 # click
2222 # pytest
23+ coverage == 7.11.1
24+ # via pytest-cov
2325distlib == 0.4.0
2426 # via virtualenv
2527exceptiongroup == 1.3.0 ; python_full_version < '3.11'
@@ -52,7 +54,9 @@ packaging==25.0
5254platformdirs == 4.5.0
5355 # via virtualenv
5456pluggy == 1.6.0
55- # via pytest
57+ # via
58+ # pytest
59+ # pytest-cov
5660pre-commit == 4.3.0
5761pydantic == 2.12.2
5862 # via fastapi
@@ -61,17 +65,22 @@ pydantic-core==2.41.4
6165pygments == 2.19.2
6266 # via pytest
6367pytest == 8.4.2
64- # via pytest-asyncio
68+ # via
69+ # pytest-asyncio
70+ # pytest-cov
6571pytest-asyncio == 1.2.0
72+ pytest-cov == 7.0.0
6673pyyaml == 6.0.3
6774 # via pre-commit
6875respx == 0.22.0
6976sniffio == 1.3.1
7077 # via anyio
7178starlette == 0.48.0
7279 # via fastapi
73- tomli == 2.3.0 ; python_full_version < '3.11'
74- # via pytest
80+ tomli == 2.3.0 ; python_full_version < = '3.11'
81+ # via
82+ # coverage
83+ # pytest
7584ty == 0.0.1a23
7685typing-extensions == 4.15.0
7786 # via
You can’t perform that action at this time.
0 commit comments