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 <[email protected]>
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 <[email protected]>
Signed-off-by: Kevin <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]