File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 27
27
- name : Install dependencies
28
28
run : |
29
29
python -m pip install --upgrade pip
30
- pip install ruff black
30
+ pip install ruff black coverage codecov
31
31
32
32
- name : Lint with Ruff
33
33
run : |
37
37
run : |
38
38
black --check git_py_stats
39
39
40
- - name : Run tests
40
+ - name : Run tests with coverage
41
41
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
43
44
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 3
3
<div align =" center " >
4
4
5
5
[ ![ 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 )
6
7
[ ![ Ruff] ( https://img.shields.io/badge/linting-Ruff-green?logo=ruff )] ( https://docs.astral.sh/ruff/ )
7
8
[ ![ Black] ( https://img.shields.io/badge/code%20style-Black-000000.svg?logo=black )] ( https://black.readthedocs.io/en/stable/ )
8
9
[ ![ License: MIT] ( https://img.shields.io/badge/License-MIT-blue.svg )] ( LICENSE )
You can’t perform that action at this time.
0 commit comments