Skip to content

Commit

Permalink
Add go.mod, update CI and badges
Browse files Browse the repository at this point in the history
  • Loading branch information
sgreben committed Nov 30, 2020
1 parent 2cdc2ca commit 4258271
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 5 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.15

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Test
run: go test -v -cover .
4 changes: 0 additions & 4 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# piecewiselinear

[![](https://godoc.org/github.com/sgreben/piecewiselinear?status.svg)](http://godoc.org/github.com/sgreben/piecewiselinear) [![](https://goreportcard.com/badge/github.com/sgreben/piecewiselinear/goreportcard)](https://goreportcard.com/report/github.com/sgreben/piecewiselinear) [![coverage](http://gocover.io/_badge/github.com/sgreben/piecewiselinear)](https://gocover.io/github.com/sgreben/piecewiselinear) [![Build Status](https://travis-ci.org/sgreben/piecewiselinear.svg?branch=master)](https://travis-ci.org/sgreben/piecewiselinear)
[![](https://godoc.org/github.com/sgreben/piecewiselinear?status.svg)](http://godoc.org/github.com/sgreben/piecewiselinear) [![](https://goreportcard.com/badge/github.com/sgreben/piecewiselinear/goreportcard)](https://goreportcard.com/report/github.com/sgreben/piecewiselinear) [![gocover.io](https://gocover.io/_badge/github.com/sgreben/piecewiselinear)](https://gocover.io/github.com/sgreben/piecewiselinear) [![Build](https://github.com/sgreben/piecewiselinear/workflows/Build/badge.svg)](https://github.com/sgreben/piecewiselinear/actions?query=workflow%3ABuild)

A tiny library for linear interpolation. `O(log(N))` per evaluation for `N` control points.

Expand Down
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/sgreben/piecewiselinear

go 1.15

0 comments on commit 4258271

Please sign in to comment.