-
Notifications
You must be signed in to change notification settings - Fork 450
34 lines (29 loc) · 949 Bytes
/
install_examples.yml
File metadata and controls
34 lines (29 loc) · 949 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
34
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 \
python=3.12 pip \
numpy matplotlib scipy \
slycot pmw jupyter \
ipython!=9.0
- 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