Skip to content

Commit 3a8e415

Browse files
committed
2 parents a759603 + bc3e7da commit 3a8e415

File tree

6 files changed

+28
-2
lines changed

6 files changed

+28
-2
lines changed

.coverage

52 KB
Binary file not shown.

.coveragerc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[run]
2+
relative_files = True
3+
4+
[report]
5+
show_missing = True
6+
7+
[html]
8+
directory = coverage_html_report

.github/workflows/deployment_tests.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
python-version: ["3.8", "3.9"]
19+
python-version: ["3.9"]
2020

2121
steps:
2222
- uses: actions/checkout@v3
@@ -35,8 +35,16 @@ jobs:
3535
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3636
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3737
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
38+
- name: Install pytest coverage
39+
run: |
40+
pip install pytest-cov==4.0.0
3841
- name: Test with pytest
3942
env:
4043
API_KEY: ${{ secrets.API_KEY }}
4144
run: |
4245
pytest
46+
- name: SonarCloud Scan
47+
uses: SonarSource/sonarcloud-github-action@master
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ keys/*
2323

2424
# python
2525
__pycache__
26-
__pycache__/*
26+
__pycache__/*
27+
28+
coverage.xml

pytest.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[pytest]
2+
addopts=--cov=transpose --cache-clear --cov-report=term --cov-report=xml

sonar-project.properties

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
sonar.projectKey=TransposeData_transpose-python-sdk
2+
sonar.organization=transposedata
3+
sonar.javascript.lcov.reportPaths=./functions/coverage/lcov.info
4+
sonar.sources=.
5+
sonar.projectDescription=Python SDK wrapper for the Transpose API suite
6+
sonar.python.coverage.reportPaths=coverage.xml

0 commit comments

Comments
 (0)