File tree Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 6
6
- ' docs/**'
7
7
- ' **/*.rst'
8
8
- ' **/*.md'
9
- pull_request :
10
- paths-ignore :
11
- - ' docs/**'
12
- - ' **/*.rst'
13
- - ' **/*.md'
14
9
15
10
jobs :
16
11
47
42
run : |
48
43
pip install -r dev_requirements.txt
49
44
invoke tests
45
+ - name : Upload codecov coverage
46
+ uses : codecov/codecov-action@v2
47
+ with :
48
+ fail_ci_if_error : false
49
+ token : ${{ secrets.CODECOV_TOKEN }}
50
50
51
51
build_package :
52
52
name : Validate building and installing the package
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ The Python interface to the Redis key-value store.
5
5
[ ![ image] ( https://github.com/redis/redis-py/workflows/CI/badge.svg?branch=master )] ( https://github.com/redis/redis-py/actions?query=workflow%3ACI+branch%3Amaster )
6
6
[ ![ image] ( https://readthedocs.org/projects/redis-py/badge/?version=stable&style=flat )] ( https://redis-py.readthedocs.io/en/stable/ )
7
7
[ ![ image] ( https://badge.fury.io/py/redis.svg )] ( https://pypi.org/project/redis/ )
8
- [ ![ image] ( https://codecov.io/gh/redis/redis-py/branch/master/graph/badge.svg )] ( https://codecov.io/gh/redis/redis-py )
8
+ [ ![ codecov] ( https://codecov.io/gh/redis/redis-py/branch/master/graph/badge.svg?token=yenl5fzxxr )] ( https://codecov.io/gh/redis/redis-py )
9
+
9
10
10
11
## Python 2 Compatibility Note
11
12
Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ pytest==6.2.5
3
3
tox==3.24.4
4
4
tox-docker==3.1.0
5
5
invoke==1.6.0
6
+ pytest-cov>=3.0.0
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ docker =
86
86
extras =
87
87
hiredis: hiredis
88
88
commands =
89
- pytest -W always {posargs}
89
+ pytest -- cov =./ -- cov-report =xml - W always {posargs}
90
90
91
91
[testenv:devenv]
92
92
skipsdist = true
You can’t perform that action at this time.
0 commit comments