Skip to content

Commit

Permalink
chore(CI): Enable code coverage (#323)
Browse files Browse the repository at this point in the history
* chore(CI): Add code coverage

Signed-off-by: Ce Gao <cegao@tensorchord.ai>

* chore: Add twitter handle

Signed-off-by: Ce Gao <cegao@tensorchord.ai>

* fix: Remove blank

Signed-off-by: Ce Gao <cegao@tensorchord.ai>

* fix: Fix path

Signed-off-by: Ce Gao <cegao@tensorchord.ai>

* fix: Change dir

Signed-off-by: Ce Gao <cegao@tensorchord.ai>

* fix: Add finish

Signed-off-by: Ce Gao <cegao@tensorchord.ai>
  • Loading branch information
gaocegege committed Jun 14, 2022
1 parent a4cb9dc commit 559e143
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ jobs:
git diff --cached --exit-code || (echo 'Please run "make generate" to verify generate' && exit 1);
- name: Test
run: make test
# - name: send coverage
# uses: shogo82148/actions-goveralls@v1
# with:
# path-to-profile: coverage.out
# working-directory: src/github.com/tensorchord/envd
# flag-name: unit-test
# parallel: true
- name: send coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: coverage.out
working-directory: ${{ env.GOPATH }}/src/github.com/tensorchord/envd
flag-name: ${{ matrix.os }}
parallel: true
build:
name: build
needs: setup
Expand Down Expand Up @@ -152,3 +152,12 @@ jobs:
${{ runner.OS }}-
- name: Build
run: make

# notifies that all test jobs are finished.
finish:
needs: test
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1
with:
parallel-finished: true
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<a href="https://discord.gg/KqswhpVgdU"><img alt="discord invitation link" src="https://img.shields.io/discord/974584200327991326?label=discord&style=social"></a>
<a href="https://github.com/tensorchord/envd/actions/workflows/CI.yml"><img alt="continuous integration" src="https://github.com/tensorchord/envd/actions/workflows/CI.yml/badge.svg"></a>
<a href="https://pypi.org/project/envd/"><img alt="envd package donwloads" src="https://static.pepy.tech/personalized-badge/envd?period=month&units=international_system&left_color=grey&right_color=brightgreen&left_text=downloads/month"</a>
<a href="https://twitter.com/TensorChord"><img src="https://img.shields.io/twitter/follow/tensorchord?style=social" alt="trackgit-views" /></a>
<a href="https://trackgit.com"><img src="https://us-central1-trackgit-analytics.cloudfunctions.net/token/ping/l3ldvdaswvnjpty9u7l3" alt="trackgit-views" /></a>
</p>

Expand Down

0 comments on commit 559e143

Please sign in to comment.