Use codecov instead of coveralls for coverage reporting

This commit is contained in:
Daniël van Noord 2022-12-27 20:19:00 +01:00
parent 03bd452620
commit d6edfb15fd
4 changed files with 20 additions and 18 deletions

View File

@ -81,19 +81,14 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5
needs: tests-linux
strategy:
matrix:
python-version: ["3.11"]
env:
COVERAGERC_FILE: .coveragerc
steps:
- name: Check out code from GitHub
uses: actions/checkout@v3.2.0
- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python 3.11
id: python
uses: actions/setup-python@v4.4.0
with:
python-version: ${{ matrix.python-version }}
python-version: "3.11"
check-latest: true
- name: Restore Python virtual environment
id: cache-venv
@ -114,13 +109,11 @@ jobs:
run: |
. venv/bin/activate
coverage combine coverage*/.coverage
coverage report --rcfile=${{ env.COVERAGERC_FILE }}
- name: Upload coverage to Coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
. venv/bin/activate
coveralls --rcfile=${{ env.COVERAGERC_FILE }} --service=github
coverage xml
- uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
verbose: true
benchmark-linux:
name: run benchmark / ${{ matrix.python-version }} / Linux

View File

@ -8,8 +8,8 @@
.. image:: https://github.com/PyCQA/pylint/actions/workflows/tests.yaml/badge.svg?branch=main
:target: https://github.com/PyCQA/pylint/actions
.. image:: https://coveralls.io/repos/github/PyCQA/pylint/badge.svg?branch=main
:target: https://coveralls.io/github/PyCQA/pylint?branch=main
.. image:: https://codecov.io/gh/PyCQA/pylint/branch/main/graph/badge.svg?token=ZETEzayrfk
:target: https://codecov.io/gh/PyCQA/pylint
.. image:: https://img.shields.io/pypi/v/pylint.svg
:alt: Pypi Package version

10
codecov.yml Normal file
View File

@ -0,0 +1,10 @@
coverage:
status:
patch:
default:
target: 100%
project:
default:
target: 95%
comment:
layout: "reach, diff, flags, files"

View File

@ -1,7 +1,6 @@
-r requirements_test_pre_commit.txt
-r requirements_test_min.txt
coveralls~=3.3
coverage~=6.5
coverage~=7.0
pre-commit~=2.21
tbump~=6.9.0
contributors-txt>=0.9.0