-
Notifications
You must be signed in to change notification settings - Fork 3
112 lines (111 loc) · 2.5 KB
/
ci.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# TODO:
# * proper deploy (with dependencies, etc.)
name: CI
on:
push:
paths-ignore:
- 'LICENSE.txt'
- 'README.md'
- '.gitignore'
pull_request:
paths-ignore:
- 'LICENSE.txt'
- 'README.md'
- '.gitignore'
jobs:
Baseline:
strategy:
fail-fast: false
matrix:
os: [ubuntu-18.04, ubuntu-20.04, ubuntu-22.04, ubuntu-latest]
cxx: [g++, clang++]
py: [python3.6, python3.7, python3]
exclude:
- os: ubuntu-22.04
py: python3.6
runs-on: ${{ matrix.os }}
env:
CXX: ${{ matrix.cxx }}
PYTHON: ${{ matrix.py }}
steps:
- uses: actions/checkout@v2
- name: Install deps
run: |
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
scripts/install-deps.sh
- name: Run tests
run: scripts/travis.sh
Pylint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install deps
run: |
scripts/install-deps.sh
sudo apt-get install pylint
- name: Run tests
run: make pylint
CSA:
runs-on: ubuntu-latest
env:
CXX: clang
steps:
- uses: actions/checkout@v2
- name: Install deps
run: |
scripts/install-deps.sh
sudo apt-get install clang-tools
- name: Run tests
run: scan-build --keep-going --status-bugs scripts/travis.sh
Asan:
runs-on: ubuntu-latest
env:
CXX: clang++
ASAN: 1
steps:
- uses: actions/checkout@v2
- name: Install deps
run: scripts/install-deps.sh
- name: Run tests
run: scripts/travis.sh
UBsan:
runs-on: ubuntu-latest
env:
CXX: clang++
UBSAN: 1
steps:
- uses: actions/checkout@v2
- name: Install deps
run: scripts/install-deps.sh
- name: Run tests
run: scripts/travis.sh
Valgrind:
runs-on: ubuntu-latest
env:
VALGRIND: 1
steps:
- uses: actions/checkout@v2
- name: Install deps
run: |
scripts/install-deps.sh
sudo apt-get install valgrind
- name: Run tests
run: scripts/travis.sh
Coverage:
needs: Baseline
runs-on: ubuntu-latest
environment: secrets
env:
COVERAGE: 1
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Install deps
run: |
scripts/install-deps.sh
sudo python3 -m pip install codecov
- name: Run tests and upload coverage
env:
PYTHON: coverage run -a
run: scripts/travis.sh