File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 2727 - name : Install dependencies
2828 run : |
2929 python -m pip install --upgrade pip
30- pip install ruff black
30+ pip install ruff black coverage codecov
3131
3232 - name : Lint with Ruff
3333 run : |
3737 run : |
3838 black --check git_py_stats
3939
40- - name : Run tests
40+ - name : Run tests with coverage
4141 run : |
42- python -m unittest discover -s git_py_stats/tests
42+ coverage run -m unittest discover -s git_py_stats/tests
43+ coverage xml
4344
45+ - name : Upload coverage to Codecov
46+ uses : codecov/codecov-action@v4
47+ with :
48+ token : ${{ secrets.CODECOV_TOKEN }}
49+ file : coverage.xml
Original file line number Diff line number Diff line change 33<div align =" center " >
44
55[ ![ CI] ( https://github.com/tomice/git-py-stats/workflows/CI/badge.svg )] ( https://github.com/tomice/git-py-stats/actions )
6+ [ ![ codecov] ( https://codecov.io/gh/tomice/git-py-stats/branch/main/graph/badge.svg )] ( https://codecov.io/gh/tomice/git-py-stats )
67[ ![ Ruff] ( https://img.shields.io/badge/linting-Ruff-green?logo=ruff )] ( https://docs.astral.sh/ruff/ )
78[ ![ Black] ( https://img.shields.io/badge/code%20style-Black-000000.svg?logo=black )] ( https://black.readthedocs.io/en/stable/ )
89[ ![ License: MIT] ( https://img.shields.io/badge/License-MIT-blue.svg )] ( LICENSE )
You can’t perform that action at this time.
0 commit comments