From 6225c6ec0bc3f9874813996c3048c08c9cbcf646 Mon Sep 17 00:00:00 2001 From: Ben Greiner Date: Fri, 27 Jan 2023 11:36:06 +0100 Subject: [PATCH] Create a dedicated conda env and use it --- .github/workflows/install_examples.yml | 31 +++++++++++++------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/.github/workflows/install_examples.yml b/.github/workflows/install_examples.yml index d50f8fda6..a9a88eb78 100644 --- a/.github/workflows/install_examples.yml +++ b/.github/workflows/install_examples.yml @@ -7,26 +7,27 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - 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: | - # Set up conda using the preinstalled GHA Miniconda environment - echo $CONDA/bin >> $GITHUB_PATH - conda config --add channels conda-forge - conda config --set channel_priority strict - - # Install build tools - conda install pip setuptools setuptools-scm - - # Install python-control dependencies and extras - conda install numpy matplotlib scipy - conda install slycot pmw jupyter + 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: pip install . + run: | + conda run -n control-examples-env pip install . - name: Run examples run: | cd examples - ./run_examples.sh - ./run_notebooks.sh + conda run -n control-examples-env ./run_examples.sh + conda run -n control-examples-env ./run_notebooks.sh pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy