Skip to content

Commit 2b0a1e7

Browse files
authored
re-enabling codecov as part of CI process (#1646)
1 parent 20f71ab commit 2b0a1e7

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

.github/workflows/integration.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ on:
66
- 'docs/**'
77
- '**/*.rst'
88
- '**/*.md'
9-
pull_request:
10-
paths-ignore:
11-
- 'docs/**'
12-
- '**/*.rst'
13-
- '**/*.md'
149

1510
jobs:
1611

@@ -47,6 +42,11 @@ jobs:
4742
run: |
4843
pip install -r dev_requirements.txt
4944
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 }}
5050

5151
build_package:
5252
name: Validate building and installing the package

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ The Python interface to the Redis key-value store.
55
[![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)
66
[![image](https://readthedocs.org/projects/redis-py/badge/?version=stable&style=flat)](https://redis-py.readthedocs.io/en/stable/)
77
[![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+
910

1011
## Python 2 Compatibility Note
1112

dev_requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ pytest==6.2.5
33
tox==3.24.4
44
tox-docker==3.1.0
55
invoke==1.6.0
6+
pytest-cov>=3.0.0

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ docker =
8686
extras =
8787
hiredis: hiredis
8888
commands =
89-
pytest -W always {posargs}
89+
pytest --cov=./ --cov-report=xml -W always {posargs}
9090

9191
[testenv:devenv]
9292
skipsdist = true

0 commit comments

Comments
 (0)