mirror of
https://fuchsia.googlesource.com/third_party/github.com/pylint-dev/pylint
synced 2024-08-01 15:15:58 +00:00
Use codecov instead of coveralls for coverage reporting
This commit is contained in:
parent
03bd452620
commit
d6edfb15fd
21
.github/workflows/tests.yaml
vendored
21
.github/workflows/tests.yaml
vendored
|
@ -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
|
||||
|
|
|
@ -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
10
codecov.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
coverage:
|
||||
status:
|
||||
patch:
|
||||
default:
|
||||
target: 100%
|
||||
project:
|
||||
default:
|
||||
target: 95%
|
||||
comment:
|
||||
layout: "reach, diff, flags, files"
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user