Skip to content

Commit

Permalink
Use codecov instead of coveralls for coverage reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielNoord committed Dec 27, 2022
1 parent 03bd452 commit d6edfb1
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 18 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python 3.11
id: python
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
python-version: "3.11"
check-latest: true
- name: Restore Python virtual environment
id: cache-venv
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
coverage:
status:
patch:
default:
target: 100%
project:
default:
target: 95%
comment:
layout: "reach, diff, flags, files"
3 changes: 1 addition & 2 deletions requirements_test.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit d6edfb1

Please sign in to comment.