Skip to content

Commit

Permalink
add code coverage github action (sashabaranov#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
sashabaranov authored Mar 8, 2023
1 parent c380d50 commit 14e1943
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: PR sanity check

on: pull_request
on:
- push

jobs:
prcheck:
Expand All @@ -20,4 +21,6 @@ jobs:
with:
version: latest
- 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 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# 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)
[![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`
Expand Down

0 comments on commit 14e1943

Please sign in to comment.