Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add sonarcloud ci/badges #64

Merged
merged 25 commits into from
Jun 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
2bb85bb
chore(deps): bump pydantic from 1.9.0 to 1.9.1 (#34)
dependabot[bot] Jun 16, 2022
d2ba759
chore(deps): bump coverage from 6.3.2 to 6.4.1 (#40)
dependabot[bot] Jun 16, 2022
c31981e
chore(deps): bump requests from 2.27.1 to 2.28.0 (#38)
dependabot[bot] Jun 16, 2022
7ad6759
chore(deps): bump wrapt from 1.14.0 to 1.14.1 (#42)
dependabot[bot] Jun 16, 2022
8c1307d
chore(deps): bump pygments from 2.11.2 to 2.12.0 (#35)
dependabot[bot] Jun 16, 2022
44a4a95
Merge branch 'main' into development
ArturLazarenko Jun 16, 2022
dd74ecc
chore(deps): bump jinja2 from 3.1.1 to 3.1.2 (#47)
dependabot[bot] Jun 16, 2022
2a73d1e
chore(deps): bump pipenv from 2022.1.8 to 2022.6.7 (#46)
dependabot[bot] Jun 16, 2022
8dd072a
chore(deps): bump furo from 2022.4.7 to 2022.6.4.1 (#49)
dependabot[bot] Jun 16, 2022
ab2f2fa
chore(deps): bump zipp from 3.7.0 to 3.8.0 (#50)
dependabot[bot] Jun 16, 2022
56460d2
chore(deps): bump astroid from 2.11.2 to 2.11.6 (#44)
dependabot[bot] Jun 16, 2022
bab1724
chore(deps): bump certifi from 2021.10.8 to 2022.6.15 (#43)
dependabot[bot] Jun 16, 2022
291e042
chore(deps): bump importlib-metadata from 4.11.1 to 4.11.4 (#45)
dependabot[bot] Jun 16, 2022
cb8f9c3
chore(deps): bump docutils from 0.17.1 to 0.18.1 (#54)
dependabot[bot] Jun 16, 2022
e01f5fa
chore(deps): bump pytest from 7.1.1 to 7.1.2 (#52)
dependabot[bot] Jun 16, 2022
6ebc1b1
chore(deps): bump sphinx from 4.5.0 to 5.0.1 (#53)
dependabot[bot] Jun 16, 2022
abcc5ff
chore(deps): bump babel from 2.9.1 to 2.10.3 (#51)
dependabot[bot] Jun 16, 2022
ef3f89a
Merge remote-tracking branch 'origin/main' into development
Th3Un1q3 Jun 17, 2022
c84a95b
chore(deps): bump sphinx from 5.0.1 to 5.0.2 (#60)
dependabot[bot] Jun 19, 2022
31b6629
chore(deps): bump charset-normalizer from 2.0.9 to 2.0.12 (#59)
dependabot[bot] Jun 19, 2022
9fc7ab5
chore(deps): bump virtualenv from 20.13.1 to 20.14.1 (#58)
dependabot[bot] Jun 19, 2022
90b37af
chore(deps): bump platformdirs from 2.4.1 to 2.5.2 (#57)
dependabot[bot] Jun 19, 2022
f6e0bea
chore(deps): bump filelock from 3.4.2 to 3.7.1 (#56)
dependabot[bot] Jun 19, 2022
3e444ad
chore(deps): bump urllib3 from 1.26.7 to 1.26.9 (#62)
dependabot[bot] Jun 19, 2022
3d4160b
ci: sonarcloud reports (#63)
ArturLazarenko Jun 20, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ name: Unit-tests
on:
push:
branches:
- '*'
- main
pull_request:
branches:
- '*'

jobs:
build:
Expand All @@ -19,4 +22,9 @@ jobs:
run: pip install -r req.txt

- name: Run tests
run: pytest --cov=emnify --cov-fail-under=90
run: pytest --cov=emnify --cov-report=xml --cov-branch
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
10 changes: 5 additions & 5 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ name = "pypi"

[packages]
certifi = "==2022.6.15"
charset-normalizer = "==2.0.9"
charset-normalizer = "==2.0.12"
distlib = "==0.3.4"
filelock = "==3.4.2"
filelock = "==3.7.1"
idna = "==3.3"
importlib-metadata = "==4.11.4"
pipenv = "==2022.6.7"
platformdirs = "==2.4.1"
platformdirs = "==2.5.2"
pydantic = "==1.9.1"
requests = "==2.28.0"
six = "==1.16.0"
typing-extensions = "==4.2.0"
urllib3 = "==1.26.7"
virtualenv = "==20.13.1"
urllib3 = "==1.26.9"
virtualenv = "==20.14.1"
virtualenv-clone = "==0.5.7"
zipp = "==3.8.0"

Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# EMnify Python SDK
[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=EMnify_emnify-sdk-python&metric=reliability_rating&token=40a0a09c3aa65d8898ae2b646e8547ecce2ac28d)](https://sonarcloud.io/summary/new_code?id=EMnify_emnify-sdk-python)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=EMnify_emnify-sdk-python&metric=coverage&token=40a0a09c3aa65d8898ae2b646e8547ecce2ac28d)](https://sonarcloud.io/summary/new_code?id=EMnify_emnify-sdk-python)
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=EMnify_emnify-sdk-python&metric=sqale_rating&token=40a0a09c3aa65d8898ae2b646e8547ecce2ac28d)](https://sonarcloud.io/summary/new_code?id=EMnify_emnify-sdk-python)
[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=EMnify_emnify-sdk-python&metric=security_rating&token=40a0a09c3aa65d8898ae2b646e8547ecce2ac28d)](https://sonarcloud.io/summary/new_code?id=EMnify_emnify-sdk-python)
[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=EMnify_emnify-sdk-python&metric=bugs&token=40a0a09c3aa65d8898ae2b646e8547ecce2ac28d)](https://sonarcloud.io/summary/new_code?id=EMnify_emnify-sdk-python)
[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=EMnify_emnify-sdk-python&metric=vulnerabilities&token=40a0a09c3aa65d8898ae2b646e8547ecce2ac28d)](https://sonarcloud.io/summary/new_code?id=EMnify_emnify-sdk-python)

Supply your swarm of IoT Devices with cloud connectivity by [EMnify](https://emnify.com).
Automate your routines with this SDK for Python.
Expand Down
2 changes: 1 addition & 1 deletion docs/req.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Jinja2==3.1.2
Sphinx==5.0.1
Sphinx==5.0.2
sphinx-autoapi==1.8.4
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-devhelp==1.0.2
Expand Down
4 changes: 4 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
sonar.projectKey=EMnify_emnify-sdk-python
sonar.organization=emnify

sonar.python.coverage.reportPaths=coverage.xml