GeezerVison is showing github.com — pytest with slycot from source · python-control/python-control@6ff2e9b
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboard +36Lines changed: 36 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 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 |