You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@submarine.apache.org by pi...@apache.org on 2022/12/13 04:35:36 UTC
[submarine] branch master updated: SUBMARINE-1359. Enable SonarCloud for Python
This is an automated email from the ASF dual-hosted git repository.
pingsutw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/submarine.git
The following commit(s) were added to refs/heads/master by this push:
new 649e9584 SUBMARINE-1359. Enable SonarCloud for Python
649e9584 is described below
commit 649e9584793d4656b3f1024567a75650526ea864
Author: huang06 <to...@gmail.com>
AuthorDate: Wed Nov 23 00:22:16 2022 +0000
SUBMARINE-1359. Enable SonarCloud for Python
### What is this PR for?
<!-- A few sentences describing the overall goals of the pull request's commits.
First time? Check out the contributing guide - https://submarine.apache.org/contribution/contributions.html
-->
Enable SonarCloud for Python SDK.
### What type of PR is it?
Improvement
### Todos
### What is the Jira issue?
<!-- * Open an issue on Jira https://issues.apache.org/jira/browse/SUBMARINE/
* Put link here, and add [SUBMARINE-*Jira number*] in PR title, eg. `SUBMARINE-23. PR title`
-->
<https://issues.apache.org/jira/browse/SUBMARINE-1359>
### How should this be tested?
<!--
* First time? Setup Travis CI as described on https://submarine.apache.org/contribution/contributions.html#continuous-integration
* Strongly recommended: add automated unit tests for any new or changed behavior
* Outline any manual steps to test the PR here.
-->
### Screenshots (if appropriate)
### Questions:
* Do the license files need updating? No
* Are there breaking changes for older versions? No
* Does this need new documentation? No
Author: huang06 <to...@gmail.com>
Signed-off-by: Kevin <pi...@apache.org>
Closes #1028 from huang06/SUBMARINE-1359 and squashes the following commits:
34d152e1 [huang06] ci: add sonarcloud for Python
---
.github/workflows/python.yml | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml
index 88727f6e..ca83bf8a 100644
--- a/.github/workflows/python.yml
+++ b/.github/workflows/python.yml
@@ -186,3 +186,20 @@ jobs:
kubectl get pods
kubectl -n default get events --sort-by='{.lastTimestamp}'
if: ${{ failure() }}
+
+ sonarcloud:
+ if: github.repository == 'apache/submarine' && github.event_name == 'push' && github.ref == 'refs/heads/master'
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - name: SonarCloud Scan
+ uses: SonarSource/sonarcloud-github-action@master
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
+ with:
+ projectBaseDir: submarine-sdk/pysubmarine
+ args: >
+ -Dsonar.organization=apache
+ -Dsonar.projectKey=apache_submarine_python_sdk
+ -Dsonar.python.version=3.7,3.8,3.9,3.10
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@submarine.apache.org
For additional commands, e-mail: dev-help@submarine.apache.org