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 1fe688e8 SUBMARINE-1337. Add codecov for Python
1fe688e8 is described below
commit 1fe688e822a047375ecab3a4695ba6828a697b5e
Author: huang06 <[email protected]>
AuthorDate: Sun Oct 9 05:51:03 2022 +0000
SUBMARINE-1337. Add codecov for Python
### What is this PR for?
Adding codecov reports for Python (submarine-sdk).
### What type of PR is it?
Improvement
### Todos
### What is the Jira issue?
<https://issues.apache.org/jira/browse/SUBMARINE-1337>
### How should this be tested?
After GitHub workflows done,
<https://app.codecov.io/gh/apache/submarine/tree/SUBMARINE-1337> will show the
coverage rate of the `submarine-sdk`.
### 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 #1007 from huang06/SUBMARINE-1337 and squashes the following commits:
cd29972e [huang06] ci: bump gh action version
5b67f823 [huang06] ci: restore python matrix
df3d344d [huang06] ci: enable master workflow
c2857627 [huang06] ci: bump k8s patch version to 1.21.14
b7cd9505 [huang06] ci: display submarine-sdk on codecov codetree
277fcd2c [huang06] ci: disable master workflow to speed up debugging
748e354c [huang06] ci: add tf1 test
542a256b [huang06] ci: generate coverge report in XML format
99094e6e [huang06] ci: update argument
4177428a [huang06] ci: specify working-directory
f3d2238b [huang06] ci: comply codecov's flag naming rule
91a4c0b6 [huang06] ci: categorize tests with flag
---
.github/workflows/master.yml | 4 ++--
.github/workflows/python.yml | 16 +++++++++++++---
2 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml
index 3c625cd3..22993b7f 100644
--- a/.github/workflows/master.yml
+++ b/.github/workflows/master.yml
@@ -30,7 +30,7 @@ jobs:
steps:
- id: set-matrix
run: |
- echo "::set-output name=matrix::[\"v1.18.20\", \"v1.19.16\",
\"v1.20.15\", \"v1.21.10\"]"
+ echo "::set-output name=matrix::[\"v1.18.20\", \"v1.19.16\",
\"v1.20.15\", \"v1.21.14\"]"
submarine-operator-verify-codegen:
runs-on: ubuntu-latest
timeout-minutes: 10
@@ -754,7 +754,7 @@ jobs:
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload coverage report to Codecov
- uses: codecov/codecov-action@v2
+ uses: codecov/codecov-action@v3
with:
files: ./target/coverage/all.xml
- name: Delete temporary build artifacts before caching
diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml
index af696cc2..88727f6e 100644
--- a/.github/workflows/python.yml
+++ b/.github/workflows/python.yml
@@ -19,7 +19,7 @@ name: python-sdk
on: [push, pull_request]
env:
- KUBERNETES_VERSION: "v1.21.2"
+ KUBERNETES_VERSION: "v1.21.14"
jobs:
check-style:
@@ -79,7 +79,12 @@ jobs:
run: pip list
- name: Run unit test
working-directory: ./submarine-sdk/pysubmarine
- run: pytest -m "not e2e"
+ run: pytest -m "not e2e" --cov-report xml
+ - uses: codecov/codecov-action@v3
+ with:
+ flags: python-unit
+ files: ./submarine-sdk/pysubmarine/coverage.xml
+ name: codecov-unit
integration:
runs-on: ubuntu-latest
@@ -169,7 +174,12 @@ jobs:
submarine config list
- name: Run integration test
working-directory: ./submarine-sdk/pysubmarine
- run: pytest -m "e2e"
+ run: pytest -m "e2e" --cov-report xml
+ - uses: codecov/codecov-action@v3
+ with:
+ flags: python-integration
+ files: ./submarine-sdk/pysubmarine/coverage.xml
+ name: codecov-integration
- name: Failure status
run: |
kubectl describe nodes
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]