7
7
runs-on : ubuntu-latest
8
8
9
9
steps :
10
- - uses : actions/checkout@v2
10
+ - name : Checkout python-control
11
+ uses : actions/checkout@v3
12
+ with :
13
+ path : python-control
11
14
- name : Set up Python
12
15
uses : actions/setup-python@v2
13
16
- name : Install Python dependencies
@@ -24,18 +27,27 @@ jobs:
24
27
# Install python-control dependencies
25
28
conda install numpy matplotlib scipy
26
29
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
27
37
- name : Install slycot from source
38
+ env :
39
+ BLA_VENDOR : Generic
40
+ CMAKE_GENERATOR : Unix Makefiles
41
+ working-directory : slycot
28
42
run : |
29
43
# Install compilers, libraries, and development environment
30
44
sudo apt-get -y install gfortran cmake --fix-missing
31
45
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
33
47
34
48
# 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 .
39
50
40
51
- name : Test with pytest
52
+ working-directory : python-control
41
53
run : xvfb-run --auto-servernum pytest control/tests
0 commit comments