-
Notifications
You must be signed in to change notification settings - Fork 145
33 lines (33 loc) · 898 Bytes
/
go.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Test & Coverage
on: [pull_request, push]
jobs:
test_and_coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Libraries
run: |
sudo apt-get install -y --no-install-recommends \
gcc \
gfortran \
libfftw3-dev \
liblapacke-dev \
libmetis-dev \
libmumps-seq-dev \
libopenblas-dev \
libsuitesparse-dev
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ^1.20
- name: Build all
run: |
bash ./all.bash
- name: Test & Coverage
run: |
go test -coverprofile=coverage.out -covermode=atomic ./...
- name: Upload to codecov.io
uses: codecov/codecov-action@v1
with:
token: ${{secrets.CODECOV_TOKEN}}
fail_ci_if_error: true