forked from python-control/python-control
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (27 loc) · 780 Bytes
/
install_examples.yml
File metadata and controls
35 lines (27 loc) · 780 Bytes
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
name: setup.py, examples
on: [push, pull_request]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
- name: Install Python dependencies
run: |
# Set up conda
echo $CONDA/bin >> $GITHUB_PATH
# Set up (virtual) X11
sudo apt install -y xvfb
# Install test tools
conda install pip pytest
# Install python-control dependencies
conda install numpy matplotlib scipy jupyter
conda install -c conda-forge slycot pmw
- name: Install with setup.py
run: python setup.py install
- name: Run examples
run: |
cd examples
./run_examples.sh
./run_notebooks.sh