Repository navigation
CI: Use miniforge because conda no longer included on GitHub runner images #1432
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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@v7 | |
| - name: Setup Conda | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| python-version: 3.12 | |
| activate-environment: control-examples-env | |
| environment-file: .github/conda-env/example-env.yml | |
| miniforge-version: latest | |
| channels: conda-forge,defaults | |
| channel-priority: strict | |
| auto-update-conda: false | |
| auto-activate-base: false | |
| - 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 |