Change setup.py (#449) #1030
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: TRI-P15 | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Lint with flake8 | |
run: | | |
# stop the build if flake8 fails. | |
flake8 . --extend-ignore=E231 --count --show-source --statistics | |
# exit-zero treats all errors as warnings. | |
flake8 . --count --exit-zero --max-complexity=10 --statistics | |
- name: Test with python unittest | |
run: | | |
python3 -m unittest discover neural_network_lyapunov/test | |
python3 -m unittest discover neural_network_lyapunov/examples/car/test | |
python3 -m unittest discover neural_network_lyapunov/examples/pendulum/test | |
python3 -m unittest discover neural_network_lyapunov/examples/pole/test | |
python3 -m unittest discover neural_network_lyapunov/examples/quadrotor2d/test | |
python3 -m unittest discover neural_network_lyapunov/examples/quadrotor3d/test | |
python3 -m unittest discover neural_network_lyapunov/examples/rocket/test | |
export PYTHONPATH=${PWD}:${PYTHONPATH} | |
python3 neural_network_lyapunov/test/train_discrete_linear_system_toy_lyapunov.py | |
python3 neural_network_lyapunov/test/train_continuous_linear_system_toy_lyapunov.py --train_on_sample --train_on_samples_iterations=2 --max_iterations=2 | |
python3 neural_network_lyapunov/examples/pendulum/train_pendulum_demo.py --pretrain_num_epochs=4 --max_iterations=3 |