forked from python-control/python-control
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (28 loc) · 937 Bytes
/
install_examples.yml
File metadata and controls
33 lines (28 loc) · 937 Bytes
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
name: Setup, Examples, Notebooks
on: [push, pull_request]
jobs:
install-examples:
runs-on: ubuntu-latest
steps:
- name: Check out the python-control sources
uses: actions/checkout@v3
- name: Set up conda using the preinstalled GHA Miniconda
run: echo $CONDA/bin >> $GITHUB_PATH
- name: Install Python dependencies from conda-forge
run: |
conda create \
--name control-examples-env \
--channel conda-forge \
--strict-channel-priority \
--quiet --yes \
pip setuptools setuptools-scm \
numpy matplotlib scipy \
slycot pmw jupyter
- name: Install from source
run: |
conda run -n control-examples-env pip install .
- name: Run examples
run: |
cd examples
conda run -n control-examples-env ./run_examples.sh
conda run -n control-examples-env ./run_notebooks.sh