add code coverage github action (#134)
This commit is contained in:
7
.github/workflows/pr.yml
vendored
7
.github/workflows/pr.yml
vendored
@@ -1,6 +1,7 @@
|
|||||||
name: PR sanity check
|
name: PR sanity check
|
||||||
|
|
||||||
on: pull_request
|
on:
|
||||||
|
- push
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prcheck:
|
prcheck:
|
||||||
@@ -20,4 +21,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: go test -v .
|
run: go test -race -covermode=atomic -coverprofile=coverage.out -v .
|
||||||
|
- name: Upload coverage reports to Codecov
|
||||||
|
uses: codecov/codecov-action@v3
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# Go OpenAI
|
# Go OpenAI
|
||||||
[](https://godoc.org/github.com/sashabaranov/go-openai)
|
[](https://godoc.org/github.com/sashabaranov/go-openai)
|
||||||
[](https://goreportcard.com/report/github.com/sashabaranov/go-openai)
|
[](https://goreportcard.com/report/github.com/sashabaranov/go-openai)
|
||||||
|
[](https://codecov.io/gh/sashabaranov/go-openai)
|
||||||
|
|
||||||
> **Note**: the repository was recently renamed from `go-gpt3` to `go-openai`
|
> **Note**: the repository was recently renamed from `go-gpt3` to `go-openai`
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user