Skip to content

Commit 197d996

Browse files
committed
add Github Actions
1 parent b74db8a commit 197d996

4 files changed

Lines changed: 79 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: weekly
7+
8+
- package-ecosystem: gomod
9+
directory: /
10+
schedule:
11+
interval: weekly

.github/workflows/go.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This workflow will checkout, build, and run the tests.
2+
# For more information see:
3+
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
4+
5+
name: Go Build and Test
6+
7+
on:
8+
push:
9+
branches: [ "main" ]
10+
pull_request:
11+
branches: [ "main" ]
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
18+
build:
19+
runs-on: ubuntu-latest
20+
strategy:
21+
matrix:
22+
# Test on supported go compiler releases as well as the oldest version we support from go.mod.
23+
go: [ '1.24', 'stable' ]
24+
name: Go version ${{ matrix.go }}
25+
steps:
26+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
27+
28+
- name: Set up Go
29+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
30+
with:
31+
go-version: ${{ matrix.go }}
32+
33+
- name: Build
34+
run: go build -v ./...
35+
36+
- name: Test
37+
run: go test -v ./...
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: golangci-lint
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
8+
permissions: read-all
9+
10+
jobs:
11+
golangci:
12+
name: lint
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
16+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
17+
with:
18+
go-version: stable
19+
- name: golangci-lint
20+
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
21+
with:
22+
version: v2.1

doc.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*
2+
Package stats is the top level package for a variety of stats packages that provide
3+
routines for performing statistical calculations.
4+
5+
Current packages include:
6+
7+
correlation/ - Methods for performing statistical correlation on datasets.
8+
*/
9+
package stats

0 commit comments

Comments
 (0)