-
Notifications
You must be signed in to change notification settings - Fork 5
50 lines (38 loc) · 976 Bytes
/
test.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Test
on:
push:
paths:
- 'src/**'
- 'include/**'
- 'test/src/**'
- 'test/reference/**'
- 'Makefile'
- '*.mk'
- 'test/Makefile'
- '.github/workflows/test.yml'
jobs:
test:
name: Test and coverage
runs-on: ubuntu-latest
env:
CC: gcc
steps:
- uses: actions/checkout@v4
- name: install dependencies
run: sudo apt-get install -y lcov
- name: Run regression tests
run: make test
- name: Generate coverage data
run: make coverage
- name: Upload coverage to Codecov.io
uses: codecov/codecov-action@v4
continue-on-error: true
with:
fail_ci_if_error: false
flags: unittests
name: codecov
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
- name: Upload coverage to Coveralls.io
continue-on-error: true
uses: coverallsapp/github-action@v2