77 runs-on : ubuntu-latest
88
99 steps :
10- - uses : actions/checkout@v2
10+ - name : Checkout python-control
11+ uses : actions/checkout@v3
12+ with :
13+ path : python-control
1114 - name : Set up Python
1215 uses : actions/setup-python@v2
1316 - name : Install Python dependencies
@@ -24,18 +27,27 @@ jobs:
2427 # Install python-control dependencies
2528 conda install numpy matplotlib scipy
2629
30+ - name : Checkout Slycot
31+ uses : actions/checkout@v3
32+ with :
33+ repository : python-control/Slycot
34+ submodules : recursive
35+ fetch-depth : 0
36+ path : slycot
2737 - name : Install slycot from source
38+ env :
39+ BLA_VENDOR : Generic
40+ CMAKE_GENERATOR : Unix Makefiles
41+ working-directory : slycot
2842 run : |
2943 # Install compilers, libraries, and development environment
3044 sudo apt-get -y install gfortran cmake --fix-missing
3145 sudo apt-get -y install libblas-dev liblapack-dev
32- conda install -c conda-forge scikit-build;
46+ conda install -c conda-forge scikit-build setuptools-scm
3347
3448 # Compile and install slycot
35- git clone https://github.com/python-control/Slycot.git slycot
36- cd slycot
37- git submodule update --init
38- python setup.py build_ext install -DBLA_VENDOR=Generic
49+ pip install -v --no-build-isolation --no-deps .
3950
4051 - name : Test with pytest
52+ working-directory : python-control
4153 run : xvfb-run --auto-servernum pytest control/tests
0 commit comments