Skip to content

Commit

Permalink
Merge pull request #5 from cpunion/ci
Browse files Browse the repository at this point in the history
code coverage
  • Loading branch information
cpunion authored Nov 1, 2024
2 parents c2712bf + fe132e2 commit 3b8cc1d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,15 @@ jobs:
- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...
- name: Test with coverage
run: go test -p 1 -v -race -coverprofile=coverage.txt -covermode=atomic ./...

- name: Upload coverage to Codecov
if: matrix.os == 'ubuntu-24.04'
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.txt
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# go-python: Write Python in Go - The most intuitive Python wrapper for Golang

[![codecov](https://codecov.io/github/cpunion/go-python/graph/badge.svg?token=DLVMvjAOFM)](https://codecov.io/github/cpunion/go-python)

## Goal

- Automatically DecRef for Python objects.
Expand Down

0 comments on commit 3b8cc1d

Please sign in to comment.