-
Notifications
You must be signed in to change notification settings - Fork 36
118 lines (118 loc) · 3.77 KB
/
main.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
113
114
115
116
117
118
name: quisp main
on: [push, pull_request]
jobs:
unit-test:
runs-on: ubuntu-latest
container:
image: ghcr.io/sfc-aqua/quisp-ci:latest
credentials:
username: quisp-bot
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: work around permission issue
run: git config --global --add safe.directory /__w/quisp/quisp
- name: Check out repository
uses: actions/checkout@v3
- name: make eigen
run: make eigen
- name: generate makefile
run: make makefile-lib
- name: generate message headers
run: make msgheaders
- name: make googletest
run: make googletest
- name: unit tests and generate coverage report
run: |
opp_makemake -f --deep -O out -i ./makefrag -M release --make-so
make lcov.info
lcov -r lcov.info 'googletest/*' -o lcov_filtered.info
working-directory: quisp
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./quisp/lcov_filtered.info
simulation-test:
runs-on: ubuntu-latest
container:
image: ghcr.io/sfc-aqua/quisp-ci:latest
credentials:
username: quisp-bot
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: work around permission issue
run: git config --global --add safe.directory /__w/quisp/quisp
- name: Check out repository
uses: actions/checkout@v3
- name: Install python dependencies for simulation tests
run: pip install -r requirements.txt
- name: doctest for simulation test utils
run: python3 -m doctest simulation_tests/utils.py -v
- name: make eigen
run: make eigen
- name: build
run: make exe
- name: Run Simulations
run: pytest simulation_tests -n auto
module-test:
runs-on: ubuntu-latest
container:
image: ghcr.io/sfc-aqua/quisp-ci:latest
credentials:
username: quisp-bot
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: work around permission issue
run: git config --global --add safe.directory /__w/quisp/quisp
- name: Check out repository
uses: actions/checkout@v3
- name: make eigen
run: make eigen
- name: generate makefile
run: make makefile-lib
- name: generate message headers
run: make msgheaders
- name: make googletest
run: make googletest
- name: run module_tests
run: make run-module-test
clang-tidy:
runs-on: ubuntu-latest
container:
image: ghcr.io/sfc-aqua/quisp-ci:latest
credentials:
username: quisp-bot
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: work around permission issue
run: git config --global --add safe.directory /__w/quisp/quisp
- name: Check out repository
uses: actions/checkout@v3
- name: make eigen
run: make eigen
- name: generate makefile
run: make makefile-lib
- name: generate message headers
run: make msgheaders
- name: make googletest
run: make googletest
- name: clang-tidy
run: make tidy
clang-format:
runs-on: ubuntu-latest
container:
image: ghcr.io/sfc-aqua/quisp-ci:latest
credentials:
username: quisp-bot
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: work around permission issue
run: git config --global --add safe.directory /__w/quisp/quisp
- name: Check out repository
uses: actions/checkout@v3
- name: generate makefile
run: make makefile-lib
- name: generate message headers
run: make msgheaders
- name: clang-format
run: make format-ci