Skip to content

Commit 6ff2e9b

Browse files
committed
pytest with slycot from source
1 parent 47251c6 commit 6ff2e9b

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Slycot from source
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build-linux:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Set up Python
12+
uses: actions/setup-python@v2
13+
- name: Install Python dependencies
14+
run: |
15+
# Set up conda
16+
echo $CONDA/bin >> $GITHUB_PATH
17+
18+
# Install test tools
19+
conda install pip pytest
20+
21+
# Install python-control dependencies
22+
conda install numpy matplotlib scipy
23+
24+
- name: Install slycot from source
25+
run: |
26+
# Install compilers, libraries, and development environment
27+
sudo apt-get -y install gfortran cmake --fix-missing
28+
sudo apt-get -y install libblas-dev liblapack-dev
29+
conda install -c conda-forge scikit-build;
30+
31+
# Compile and install slycot
32+
git clone https://github.com/python-control/Slycot.git slycot
33+
cd slycot; python setup.py build_ext install -DBLA_VENDOR=Generic
34+
35+
- name: Test with pytest
36+
run: pytest control/tests

0 commit comments

Comments
 (0)