summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChayim <chayim@users.noreply.github.com>2021-10-26 12:25:59 +0300
committerGitHub <noreply@github.com>2021-10-26 12:25:59 +0300
commit2b0a1e72b82b1706ae8f9939dab0ddd62efe413f (patch)
tree6d9f09197fa25a1c4a8144793561d681dda36d00
parent20f71abcbf9af4d628c2e1ae1ad07457f8f31bef (diff)
downloadredis-py-2b0a1e72b82b1706ae8f9939dab0ddd62efe413f.tar.gz
re-enabling codecov as part of CI process (#1646)
-rw-r--r--.github/workflows/integration.yaml10
-rw-r--r--README.md3
-rw-r--r--dev_requirements.txt1
-rw-r--r--tox.ini2
4 files changed, 9 insertions, 7 deletions
diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml
index 2618c33..45254d0 100644
--- a/.github/workflows/integration.yaml
+++ b/.github/workflows/integration.yaml
@@ -6,11 +6,6 @@ on:
- 'docs/**'
- '**/*.rst'
- '**/*.md'
- pull_request:
- paths-ignore:
- - 'docs/**'
- - '**/*.rst'
- - '**/*.md'
jobs:
@@ -47,6 +42,11 @@ jobs:
run: |
pip install -r dev_requirements.txt
invoke tests
+ - name: Upload codecov coverage
+ uses: codecov/codecov-action@v2
+ with:
+ fail_ci_if_error: false
+ token: ${{ secrets.CODECOV_TOKEN }}
build_package:
name: Validate building and installing the package
diff --git a/README.md b/README.md
index 1b535ae..b6d3115 100644
--- a/README.md
+++ b/README.md
@@ -5,7 +5,8 @@ The Python interface to the Redis key-value store.
[![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)
[![image](https://readthedocs.org/projects/redis-py/badge/?version=stable&style=flat)](https://redis-py.readthedocs.io/en/stable/)
[![image](https://badge.fury.io/py/redis.svg)](https://pypi.org/project/redis/)
-[![image](https://codecov.io/gh/redis/redis-py/branch/master/graph/badge.svg)](https://codecov.io/gh/redis/redis-py)
+[![codecov](https://codecov.io/gh/redis/redis-py/branch/master/graph/badge.svg?token=yenl5fzxxr)](https://codecov.io/gh/redis/redis-py)
+
## Python 2 Compatibility Note
diff --git a/dev_requirements.txt b/dev_requirements.txt
index 2648127..d3f91fe 100644
--- a/dev_requirements.txt
+++ b/dev_requirements.txt
@@ -3,3 +3,4 @@ pytest==6.2.5
tox==3.24.4
tox-docker==3.1.0
invoke==1.6.0
+pytest-cov>=3.0.0 \ No newline at end of file
diff --git a/tox.ini b/tox.ini
index 7d79d38..67b7e75 100644
--- a/tox.ini
+++ b/tox.ini
@@ -86,7 +86,7 @@ docker =
extras =
hiredis: hiredis
commands =
- pytest -W always {posargs}
+ pytest --cov=./ --cov-report=xml -W always {posargs}
[testenv:devenv]
skipsdist = true