Skip to content

Commit 64b3694

Browse files
author
Mat Lord
committed
feat(coverage) move from Sonar to Codecov
1 parent 3d75ddc commit 64b3694

4 files changed

Lines changed: 24 additions & 31 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,8 @@ jobs:
2121
run: make install
2222
- name: Run tests
2323
run: make test
24-
- name: Archive code coverage results
25-
uses: actions/upload-artifact@v1
24+
- name: Upload coverage to Codecov 📝
25+
uses: "codecov/codecov-action@v1"
2626
with:
27-
name: code-coverage-report
28-
path: coverage-reports
29-
if: always()
30-
31-
sonarScan:
32-
needs: build
33-
name: SonarCloud Trigger
34-
runs-on: ubuntu-latest
35-
steps:
36-
- name: Clone Repository
37-
uses: actions/checkout@master
38-
- name: Download code coverage results
39-
uses: actions/download-artifact@v1
40-
with:
41-
name: code-coverage-report
42-
path: coverage-reports
43-
- name: Analyze with SonarCloud
44-
uses: sonarsource/sonarcloud-github-action@master
45-
env:
46-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
27+
fail_ci_if_error: true
28+
file: ./coverage-reports/coverage-report.xml

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Stax SDK for Python
22
`staxapp` is the [Stax](https://stax.io) Software Development Kit (SDK) for Python, allowing users to interact with the Stax platform.
33

4-
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=stax-labs_lib-stax-python-sdk&metric=alert_status&token=a1841dea3e7b4f749a99ea4351e95de1775f39fb)](https://sonarcloud.io/dashboard?id=stax-labs_lib-stax-python-sdk)
4+
[![codecov](https://codecov.io/gh/stax-labs/lib-stax-python-sdk/branch/master/graph/badge.svg)](https://codecov.io/gh/stax-labs/lib-stax-python-sdk)
55
![build](https://github.com/stax-labs/lib-stax-python-sdk/workflows/build/badge.svg)
66
![deploy](https://github.com/stax-labs/lib-stax-python-sdk/workflows/deploy/badge.svg)
77
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/staxapp)

codecov.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
ignore:
2+
- "setup.py"
3+
- "**/tests/**"
4+
- "**/examples/**"
5+
coverage:
6+
range: 80..100
7+
round: down
8+
precision: 2
9+
status:
10+
project:
11+
enabled: yes
12+
target: auto
13+
threshold: 0%
14+
comment:
15+
layout: diff, files
16+
behavior: new
17+
branches:
18+
- "master"
19+

sonar-project.properties

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)