Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite6ba790

Browse files
authored
Merge pull request#855 from bnavigator/fix-gha-examples
GHA run examples: Create a dedicated conda env and use it
2 parents55730b6 +6225c6e commite6ba790

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

‎.github/workflows/install_examples.yml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,27 @@ jobs:
77
runs-on:ubuntu-latest
88

99
steps:
10-
-uses:actions/checkout@v3
10+
-name:Check out the python-control sources
11+
uses:actions/checkout@v3
12+
-name:Set up conda using the preinstalled GHA Miniconda
13+
run:echo $CONDA/bin >> $GITHUB_PATH
1114
-name:Install Python dependencies from conda-forge
1215
run:|
13-
# Set up conda using the preinstalled GHA Miniconda environment
14-
echo $CONDA/bin >> $GITHUB_PATH
15-
conda config --add channels conda-forge
16-
conda config --set channel_priority strict
17-
18-
# Install build tools
19-
conda install pip setuptools setuptools-scm
20-
21-
# Install python-control dependencies and extras
22-
conda install numpy matplotlib scipy
23-
conda install slycot pmw jupyter
16+
conda create \
17+
--name control-examples-env \
18+
--channel conda-forge \
19+
--strict-channel-priority \
20+
--quiet --yes \
21+
pip setuptools setuptools-scm \
22+
numpy matplotlib scipy \
23+
slycot pmw jupyter
2424
2525
-name:Install from source
26-
run:pip install .
26+
run:|
27+
conda run -n control-examples-env pip install .
2728
2829
-name:Run examples
2930
run:|
3031
cd examples
31-
./run_examples.sh
32-
./run_notebooks.sh
32+
conda run -n control-examples-env./run_examples.sh
33+
conda run -n control-examples-env./run_notebooks.sh

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp