forked from python-control/python-control
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 1.13 KB
/
control-slycot-src.yml
File metadata and controls
41 lines (32 loc) · 1.13 KB
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
name: Slycot from source
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 pytest-timeout
# Install python-control dependencies
conda install numpy matplotlib scipy
- name: Install slycot from source
run: |
# Install compilers, libraries, and development environment
sudo apt-get -y install gfortran cmake --fix-missing
sudo apt-get -y install libblas-dev liblapack-dev
conda install -c conda-forge scikit-build;
# Compile and install slycot
git clone https://github.com/python-control/Slycot.git slycot
cd slycot
git submodule update --init
python setup.py build_ext install -DBLA_VENDOR=Generic
- name: Test with pytest
run: xvfb-run --auto-servernum pytest control/tests