Skip to content

Commit 71d4b32

Browse files
committed
CI: use miniforge in install_examples workflow
1 parent bfe9380 commit 71d4b32

2 files changed

Lines changed: 22 additions & 13 deletions

File tree

‎.github/conda-env/example-env.yml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: control-examples-env
2+
dependencies:
3+
- pip
4+
- numpy
5+
- matplotlib
6+
- scipy
7+
- slycot
8+
- pmw
9+
- jupyter
10+
- ipython!=9.0

‎.github/workflows/install_examples.yml‎

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,18 @@ jobs:
99
steps:
1010
- name: Check out the python-control sources
1111
uses: actions/checkout@v3
12-
- name: Set up conda using the preinstalled GHA Miniconda
13-
run: echo $CONDA/bin >> $GITHUB_PATH
14-
- name: Install Python dependencies from conda-forge
15-
run: |
16-
conda create \
17-
--name control-examples-env \
18-
--channel conda-forge \
19-
--strict-channel-priority \
20-
--quiet --yes \
21-
python=3.12 pip \
22-
numpy matplotlib scipy \
23-
slycot pmw jupyter \
24-
ipython!=9.0
12+
13+
- name: Setup Conda
14+
uses: conda-incubator/setup-miniconda@v3
15+
with:
16+
python-version: 3.12
17+
activate-environment: control-examples-env
18+
environment-file: .github/conda-env/example-env.yml
19+
miniforge-version: latest
20+
channels: conda-forge,defaults
21+
channel-priority: strict
22+
auto-update-conda: false
23+
auto-activate-base: false
2524

2625
- name: Install from source
2726
run: |

0 commit comments

Comments
 (0)