File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Build Connect Python OpenAPI Client
22
33on :
44 push :
5- branches : [ master, develop ]
5+ branches : ' * '
66 tags :
77 - ' *'
88 pull_request :
1616 python-version : [3.6, 3.7, 3.8]
1717 steps :
1818 - uses : actions/checkout@v2
19+ with :
20+ fetch-depth : 0
1921 - name : Set up Python ${{ matrix.python-version }}
2022 uses : actions/setup-python@v2
2123 with :
3739 file : ./coverage.xml
3840 fail_ci_if_error : true
3941 verbose : true
42+ - name : Fix coverage.xml for Sonar
43+ run : |
44+ sed -i 's/\/home\/runner\/work\/connect-python-openapi-client\/connect-python-openapi-client\//\/github\/workspace\//g' coverage.xml
45+ - name : SonarCloud
46+ uses : SonarSource/sonarcloud-github-action@master
47+ env :
48+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
49+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
50+
Original file line number Diff line number Diff line change 11# Connect Python OpenAPI Client
22
3- ![ pyversions] ( https://img.shields.io/pypi/pyversions/connect-openapi-client.svg ) [ ![ PyPi Status] ( https://img.shields.io/pypi/v/connect-openapi-client.svg )] ( https://pypi.org/project/connect-openapi-client/ ) [ ![ Build Status] ( https://github.com/cloudblue/connect-python-openapi-client/workflows/Build%20Connect%20Python%20OpenAPI%20Client/badge.svg )] ( https://github.com/cloudblue/connect-python-openapi-client/actions ) [ ![ codecov] ( https://codecov.io/gh/cloudblue/connect-python-openapi-client/branch/master/graph/badge.svg )] ( https://codecov.io/gh/cloudblue/connect-python-openapi-client )
3+ ![ pyversions] ( https://img.shields.io/pypi/pyversions/connect-openapi-client.svg ) [ ![ PyPi Status] ( https://img.shields.io/pypi/v/connect-openapi-client.svg )] ( https://pypi.org/project/connect-openapi-client/ ) [ ![ Build Status] ( https://github.com/cloudblue/connect-python-openapi-client/workflows/Build%20Connect%20Python%20OpenAPI%20Client/badge.svg )] ( https://github.com/cloudblue/connect-python-openapi-client/actions ) [ ![ codecov] ( https://codecov.io/gh/cloudblue/connect-python-openapi-client/branch/master/graph/badge.svg )] ( https://codecov.io/gh/cloudblue/connect-python-openapi-client ) [ ![ Quality Gate Status ] ( https://sonarcloud.io/api/project_badges/measure?project=connect-open-api-client&metric=alert_status )] ( https://sonarcloud.io/dashboard?id=connect-open-api-client )
44
55
66
Original file line number Diff line number Diff line change 11[tool .poetry ]
2- name = " connect-api -client"
2+ name = " connect-openapi -client"
33version = " 21.0.0"
44description = " Connect Python OpenAPI Client"
55authors = [" CloudBlue" ]
@@ -38,9 +38,6 @@ build-backend = "poetry.core.masonry.api"
3838[tool .pytest .ini_options ]
3939testpaths = " tests"
4040addopts = " --cov=cnct --cov-report=term-missing:skip-covered --cov-report=html --cov-report=xml"
41- python_files = " test_*.py"
42- junit_family = " xunit2"
43- log_cli = true
4441
4542[tool .coverage .run ]
4643branch = true
Original file line number Diff line number Diff line change 1+ sonar.projectName =Connect Python OpenAPI Client
2+ sonar.projectKey =connect-open-api-client
3+ sonar.organization =cloudbluesonarcube
4+
5+ sonar.language =py
6+
7+ sonar.sources =cnct
8+ sonar.tests =tests
9+ sonar.inclusions =cnct/**
10+ sonar.exclusions =tests/**
11+
12+ sonar.python.coverage.reportPaths =./coverage.xml
You can’t perform that action at this time.
0 commit comments