-
Notifications
You must be signed in to change notification settings - Fork 33
46 lines (44 loc) · 1.7 KB
/
build.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: build
on:
push:
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Install build-essential and python moduels for Ubuntu
if: matrix.os == 'ubuntu-22.04' || matrix.os == 'ubuntu-20.04'
run: |
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential
python3 -m pip install sympy numpy matplotlib seaborn pytest jupyter nbconvert
- name: Install build-essential and python moduels for MacOS
if: matrix.os == 'macos-latest'
run: |
brew install cmake
python3 -m pip install sympy numpy matplotlib seaborn pytest jupyter nbconvert
- name: Install build-essential and python moduels for Windows
if: matrix.os == 'windows-latest'
run: |
python3 -m pip install sympy numpy matplotlib seaborn pytest jupyter nbconvert
- name: Run notebooks
run: |
git submodule update --init --recursive
jupyter nbconvert --to python cartpole.ipynb hexacopter.ipynb mobilerobot.ipynb pendubot.ipynb
cp .github/workflows/sed.py .
python3 sed.py
cp .github/workflows/test_cartpole.py .
cp .github/workflows/test_hexacopter.py .
cp .github/workflows/test_mobilerobot.py .
cp .github/workflows/test_pendubot.py .
python3 -m pytest test_cartpole.py
python3 -m pytest test_hexacopter.py
python3 -m pytest test_mobilerobot.py
python3 -m pytest test_pendubot.py