This is an automated email from the ASF dual-hosted git repository.

xushiyan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hudi-rs.git


The following commit(s) were added to refs/heads/main by this push:
     new 87ad88a  ci: fix codecov setup (#20)
87ad88a is described below

commit 87ad88addc76c026c04b9a4c5da9e4c8f8749f21
Author: Shiyan Xu <[email protected]>
AuthorDate: Thu May 9 10:49:36 2024 -0500

    ci: fix codecov setup (#20)
    
    Add codecov upload step after unit test.
---
 .github/workflows/ci.yml | 6 ++++++
 README.md                | 2 ++
 2 files changed, 8 insertions(+)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index cdce664..b1be13a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -62,3 +62,9 @@ jobs:
       - uses: actions/checkout@v4
       - name: Unit test with code coverage
         run: cargo tarpaulin --verbose --no-fail-fast --all-features 
--workspace --out xml
+      - name: Upload coverage reports to Codecov
+        uses: codecov/codecov-action@v4
+        with:
+          fail_ci_if_error: true
+        env:
+          CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
diff --git a/README.md b/README.md
index 0fab609..bd3b3a5 100644
--- a/README.md
+++ b/README.md
@@ -19,6 +19,8 @@
 
 # hudi-rs
 
+[![codecov](https://codecov.io/github/apache/hudi-rs/graph/badge.svg?token=E8CSWKJXLE)](https://codecov.io/github/apache/hudi-rs)
+
 ## Quick Start
 
 ### Apache DataFusion

Reply via email to