-
Notifications
You must be signed in to change notification settings - Fork 450
43 lines (37 loc) · 1.11 KB
/
control-slycot-src.yml
File metadata and controls
43 lines (37 loc) · 1.11 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
42
43
name: Slycot from source
on: [push, pull_request]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout python-control
uses: actions/checkout@v3
with:
path: python-control
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install Python dependencies and test tools
run: pip install -v './python-control[test]'
- name: Checkout Slycot
uses: actions/checkout@v3
with:
repository: python-control/Slycot
submodules: recursive
fetch-depth: 0
path: slycot
- name: Install slycot from source
env:
BLA_VENDOR: Generic
CMAKE_GENERATOR: Unix Makefiles
working-directory: slycot
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
# Compile and install slycot
pip install -v .
- name: Test with pytest
working-directory: python-control
run: pytest -v control/tests