Skip to content

Commit

Permalink
add codecov.yml (#131)
Browse files Browse the repository at this point in the history
* add codecov.yml

* Add codecov upload to ci

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update ci.yml

* Update README.md

* Update codecov.yml

* Update ci.yml

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
simonhkswan and pre-commit-ci[bot] authored Sep 16, 2021
1 parent 98ca628 commit 432b120
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- 3.7
- 3.8
- 3.9

name: Check Python ${{ matrix.python-version }}
steps:
- uses: actions/[email protected]
Expand Down Expand Up @@ -44,6 +45,14 @@ jobs:
env:
SYNTHESIZED_KEY: ${{ secrets.SYNTHESIZED_KEY }}

- name: Upload Codecov report
if: ${{ matrix.python-version }} == '3.7'
uses: codecov/[email protected]
with:
files: coverage-reports/cobertura.xml
flags: unittests
fail_ci_if_error: false

- name: SonarCloud Scan
if: ${{ matrix.python-version }} == '3.7'
uses: SonarSource/sonarcloud-github-action@master
Expand All @@ -57,7 +66,7 @@ jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2.3.4

- uses: actions/setup-python@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=synthesized-io_fairlens&metric=sqale_rating&token=4df8d79db869c4f81a2225da446ca06d3b83d4be)](https://sonarcloud.io/dashboard?id=synthesized-io_fairlens)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=synthesized-io_fairlens&metric=coverage&token=4df8d79db869c4f81a2225da446ca06d3b83d4be)](https://sonarcloud.io/dashboard?id=synthesized-io_fairlens)
[![codecov](https://codecov.io/gh/synthesized-io/fairlens/branch/main/graph/badge.svg?token=0EWTY95MU0)](https://codecov.io/gh/synthesized-io/fairlens)
![GitHub Repo stars](https://img.shields.io/github/stars/synthesized-io/fairlens?style=social)

# FairLens
Expand Down
11 changes: 11 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
coverage:
status:
project:
default:
target: auto # auto compares coverage to the previous base commit
threshold: 1%
patch:
default:
target: 50%
...

0 comments on commit 432b120

Please sign in to comment.