-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (42 loc) · 1.17 KB
/
ci.yaml
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
name: ci
on:
push:
branches: [ master, devel ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.7]
steps:
- uses: actions/checkout@v2
- uses: lukka/run-cmake@v3.1
- name: Checkout submodules
uses: srt32/git-actions@v0.0.3
with:
args: git submodule update --init --recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install googletest
run: |
wget https://github.com/google/googletest/archive/release-1.10.0.tar.gz
mkdir googletest
tar -zxvf release-1.10.0.tar.gz -C googletest --strip-components 1
mkdir -p googletest/build
cd googletest/build
cmake .. && make && sudo make install
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install '.[dev]'
pip install .
- name: Run tests
run: |
make test
- name: Run lints
run: |
make lint