-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (30 loc) · 894 Bytes
/
Copy pathci.yml
File metadata and controls
35 lines (30 loc) · 894 Bytes
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
34
35
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
main:
name: Main
runs-on: ubuntu-latest
container:
image: 'ubuntu:20.04'
steps:
- name: install apt deps
run: apt update && apt install --no-install-recommends -y ca-certificates curl g++ git golang make pkg-config
- uses: actions/checkout@v2
with:
submodules: true
- name: install alephzero core
run: cd ./alephzero/ && make install -j && cd ..
- name: run tests
run: GODEBUG=cgocheck=0 go test -race -coverprofile=coverage.txt -covermode=atomic
- name: run
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
# Use action when https://github.com/codecov/codecov-action/issues/24 is resolved
curl -o ./codecov https://codecov.io/bash
chmod +x ./codecov
./codecov