-
Notifications
You must be signed in to change notification settings - Fork 9
60 lines (56 loc) · 1.54 KB
/
actions.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
name: CI
on: [push]
jobs:
linux:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
ocaml: [4.03.0, 4.09.0, 4.11.1]
steps:
- uses: actions/checkout@v1
- name: Setup opam and OCaml
uses: avsm/setup-ocaml@v1
with:
ocaml-version: ${{ matrix.ocaml }}
- name: Install num
if: ${{ matrix.ocaml >= '4.06' }}
run: opam install -y num
- name: Set up Python 3.7 for tests (and gelpia)
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install pyyaml
- name: Install gelpia dependencies
if: startsWith(matrix.os, 'ubuntu')
run: |
pip install sly
sudo apt install flex bison wget
- name: Download and build gelpia
if: startsWith(matrix.os, 'ubuntu')
run: |
git clone https://github.com/soarlab/gelpia.git
cd gelpia
git checkout develop
make requirements
make
- name: Build FPTaylor
run: make
- name: Run basic tests
run: |
grep opt -C 3 default.cfg
make test
- name: Run basic tests with gelpia
if: startsWith(matrix.os, 'ubuntu')
run: |
sed -i "s|^opt = bb|opt = gelpia|g" default.cfg
make test
- name: Regression tests
run: |
cd scripts
python run_tests.py ../tests/basic
python run_tests.py ../tests/micro
python run_tests.py ../tests/core