Skip to content

Commit d6edfb1

Browse files
committed
Use codecov instead of coveralls for coverage reporting
1 parent 03bd452 commit d6edfb1

File tree

4 files changed

+20
-18
lines changed

4 files changed

+20
-18
lines changed

.github/workflows/tests.yaml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -81,19 +81,14 @@ jobs:
8181
runs-on: ubuntu-latest
8282
timeout-minutes: 5
8383
needs: tests-linux
84-
strategy:
85-
matrix:
86-
python-version: ["3.11"]
87-
env:
88-
COVERAGERC_FILE: .coveragerc
8984
steps:
9085
- name: Check out code from GitHub
9186
uses: actions/[email protected]
92-
- name: Set up Python ${{ matrix.python-version }}
87+
- name: Set up Python 3.11
9388
id: python
9489
uses: actions/[email protected]
9590
with:
96-
python-version: ${{ matrix.python-version }}
91+
python-version: "3.11"
9792
check-latest: true
9893
- name: Restore Python virtual environment
9994
id: cache-venv
@@ -114,13 +109,11 @@ jobs:
114109
run: |
115110
. venv/bin/activate
116111
coverage combine coverage*/.coverage
117-
coverage report --rcfile=${{ env.COVERAGERC_FILE }}
118-
- name: Upload coverage to Coveralls
119-
env:
120-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
121-
run: |
122-
. venv/bin/activate
123-
coveralls --rcfile=${{ env.COVERAGERC_FILE }} --service=github
112+
coverage xml
113+
- uses: codecov/codecov-action@v3
114+
with:
115+
fail_ci_if_error: true
116+
verbose: true
124117

125118
benchmark-linux:
126119
name: run benchmark / ${{ matrix.python-version }} / Linux

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
.. image:: https://github.com/PyCQA/pylint/actions/workflows/tests.yaml/badge.svg?branch=main
99
:target: https://github.com/PyCQA/pylint/actions
1010

11-
.. image:: https://coveralls.io/repos/github/PyCQA/pylint/badge.svg?branch=main
12-
:target: https://coveralls.io/github/PyCQA/pylint?branch=main
11+
.. image:: https://codecov.io/gh/PyCQA/pylint/branch/main/graph/badge.svg?token=ZETEzayrfk
12+
:target: https://codecov.io/gh/PyCQA/pylint
1313

1414
.. image:: https://img.shields.io/pypi/v/pylint.svg
1515
:alt: Pypi Package version

codecov.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
coverage:
2+
status:
3+
patch:
4+
default:
5+
target: 100%
6+
project:
7+
default:
8+
target: 95%
9+
comment:
10+
layout: "reach, diff, flags, files"

requirements_test.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
-r requirements_test_pre_commit.txt
22
-r requirements_test_min.txt
3-
coveralls~=3.3
4-
coverage~=6.5
3+
coverage~=7.0
54
pre-commit~=2.21
65
tbump~=6.9.0
76
contributors-txt>=0.9.0

0 commit comments

Comments
 (0)