File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,11 +32,10 @@ jobs:
3232 run : coverage run -m pytest
3333 - name : Generate coverage report
3434 run : coverage xml
35- - name : Upload coverage report
36- if : ${{ matrix.os == 'ubuntu-latest' && matrix.python == '3.13' && github.actor != 'dependabot[bot]' }}
37- uses : paambaati/codeclimate-action@v3.0.0
35+
36+ - name : SonarQube Scan
37+ if : ${{ matrix.python == '3.13' && github.actor != 'dependabot[bot]' }}
38+ uses : SonarSource/sonarqube-scan-action@v5.2.0
3839 env :
39- CC_TEST_REPORTER_ID : ${{ secrets.CODE_CLIMATE_TEST_REPORTER_ID }}
40- with :
41- coverageLocations : |
42- ${{github.workspace}}/coverage.xml:coverage.py
40+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
41+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 11# apimatic-core
22[ ![ PyPI] [ pypi-version ]] [ apimatic-core-pypi-url ]
33[ ![ Tests] [ test-badge ]] [ test-url ]
4- [ ![ Test Coverage] [ test-coverage-url ]] [ code-climate-url ]
4+ [ ![ Test Coverage] [ coverage-badge ]] [ coverage-url ]
5+ [ ![ Maintainability Rating] [ maintainability-badge ]] [ maintainability-url ]
6+ [ ![ Vulnerabilities] [ vulnerabilities-badge ]] [ vulnerabilities-url ]
57[ ![ Licence] [ license-badge ]] [ license-url ]
68
79## Introduction
@@ -125,8 +127,11 @@ pip install apimatic-core
125127[ apimatic-core-pypi-url ] : https://pypi.org/project/apimatic-core/
126128[ test-badge ] : https://github.com/apimatic/core-lib-python/actions/workflows/test-runner.yml/badge.svg
127129[ test-url ] : https://github.com/apimatic/core-lib-python/actions/workflows/test-runner.yml
128- [ code-climate-url ] : https://codeclimate.com/github/apimatic/core-lib-python
129- [ maintainability-url ] : https://api.codeclimate.com/v1/badges/32e7abfdd4d27613ae76/maintainability
130- [ test-coverage-url ] : https://api.codeclimate.com/v1/badges/32e7abfdd4d27613ae76/test_coverage
130+ [ coverage-badge ] : https://sonarcloud.io/api/project_badges/measure?project=apimatic_core-lib-python&metric=coverage
131+ [ coverage-url ] : https://sonarcloud.io/summary/new_code?id=apimatic_core-lib-python
132+ [ maintainability-badge ] : https://sonarcloud.io/api/project_badges/measure?project=apimatic_core-lib-python&metric=sqale_rating
133+ [ maintainability-url ] : https://sonarcloud.io/summary/new_code?id=apimatic_core-lib-python
134+ [ vulnerabilities-badge ] : https://sonarcloud.io/api/project_badges/measure?project=apimatic_core-lib-python&metric=vulnerabilities
135+ [ vulnerabilities-url ] : https://sonarcloud.io/summary/new_code?id=apimatic_core-lib-python
131136[ license-badge ] : https://img.shields.io/badge/licence-MIT-blue
132137[ license-url ] : LICENSE
Original file line number Diff line number Diff line change 1+ sonar.projectKey =apimatic_core-lib-python
2+ sonar.projectName =APIMatic Core Library for Python
3+ sonar.organization =apimatic
4+ sonar.host.url =https://sonarcloud.io
5+ sonar.sourceEncoding =UTF-8
6+
7+ sonar.sources =apimatic_core
8+ sonar.tests =tests
9+
10+ sonar.python.coverage.reportPaths =coverage.xml
You can’t perform that action at this time.
0 commit comments