File tree Expand file tree Collapse file tree 4 files changed +16
-10
lines changed Expand file tree Collapse file tree 4 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -45,15 +45,16 @@ jobs:
45
45
commit-check -h
46
46
commit-check --message --branch --author-email
47
47
48
- # - name: Collect Coverage
49
- # run: coverage run -m pytest
50
-
51
- # - run: coverage report && coverage xml
52
- # - uses: codecov/codecov-action@v3
53
- # with:
54
- # files: ./coverage.xml
55
- # fail_ci_if_error: true # optional (default = false)
56
- # verbose: true # optional (default = false)
48
+ - name : Collect Coverage
49
+ run : |
50
+ coverage run -m pytest
51
+ coverage report && coverage xml
52
+ - uses : codecov/codecov-action@v3
53
+ with :
54
+ token : ${{ secrets.CODECOV_TOKEN }}
55
+ files : ./coverage.xml
56
+ fail_ci_if_error : true # optional (default = false)
57
+ verbose : true # optional (default = false)
57
58
58
59
install :
59
60
needs : [build]
Original file line number Diff line number Diff line change 8
8
build
9
9
tests /__pycache__
10
10
.coverage
11
+ coverage.xml
11
12
12
13
# docs
13
14
docs /_build
Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ Commit Check
17
17
:alt: pre-commit.ci status
18
18
:target: https://results.pre-commit.ci/latest/github/commit-check/commit-check/main
19
19
20
+ .. image :: https://codecov.io/gh/commit-check/commit-check/branch/main/graph/badge.svg?token=GC2U5V5ZRT
21
+ :alt: CodeCov
22
+ :target: https://codecov.io/gh/commit-check/commit-check
23
+
20
24
Overview
21
25
--------
22
26
Original file line number Diff line number Diff line change @@ -109,4 +109,4 @@ def main() -> int:
109
109
110
110
111
111
if __name__ == '__main__' :
112
- raise SystemExit (main ())
112
+ raise SystemExit (main ()) # pragma: no cover
You can’t perform that action at this time.
0 commit comments