add code coverage github action (#134)

This commit is contained in:
sashabaranov
2023-03-08 19:14:34 +04:00
committed by GitHub
parent c380d5031b
commit 14e1943c20
2 changed files with 6 additions and 2 deletions

View File

@@ -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

View File

@@ -1,6 +1,7 @@
# Go OpenAI # Go OpenAI
[![GoDoc](http://img.shields.io/badge/GoDoc-Reference-blue.svg)](https://godoc.org/github.com/sashabaranov/go-openai) [![GoDoc](http://img.shields.io/badge/GoDoc-Reference-blue.svg)](https://godoc.org/github.com/sashabaranov/go-openai)
[![Go Report Card](https://goreportcard.com/badge/github.com/sashabaranov/go-openai)](https://goreportcard.com/report/github.com/sashabaranov/go-openai) [![Go Report Card](https://goreportcard.com/badge/github.com/sashabaranov/go-openai)](https://goreportcard.com/report/github.com/sashabaranov/go-openai)
[![codecov](https://codecov.io/gh/sashabaranov/go-openai/branch/master/graph/badge.svg?token=bCbIfHLIsW)](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`