From 5138c9848085c7a3501d12fcd2e2c38efc7fdf50 Mon Sep 17 00:00:00 2001 From: "Chayim I. Kirshen" Date: Tue, 26 Oct 2021 12:15:51 +0300 Subject: [PATCH 1/2] re-enable codecov closes #1630 --- .github/workflows/integration.yaml | 5 +++++ README.md | 3 ++- dev_requirements.txt | 1 + tox.ini | 2 +- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml index 2618c336da..9c056152ed 100644 --- a/.github/workflows/integration.yaml +++ b/.github/workflows/integration.yaml @@ -47,6 +47,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 1b535ae36f..b6d3115a0b 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 2648127712..d3f91fef3d 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 7d79d38f13..67b7e7575d 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 From 9c51d9c2e69f302fa7437ad8b0b0502151b218ec Mon Sep 17 00:00:00 2001 From: "Chayim I. Kirshen" Date: Tue, 26 Oct 2021 12:21:39 +0300 Subject: [PATCH 2/2] fixing double integration run --- .github/workflows/integration.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml index 9c056152ed..45254d0ad0 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: