Skip to content

Commit

Permalink
CI: Add notebook dependencies to run
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob-Stevens-Haas committed Feb 5, 2024
1 parent cf58dcb commit e4b2ab2
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/notebooks.yml
Expand Up @@ -22,8 +22,13 @@ jobs:
path: "examples"
ext: ".ipynb"

setup-python:
run-notebooks:
needs: find-notebooks
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
files: ${{ fromJson(needs.find-notebooks.outputs.paths) }}
steps:
- uses: actions/checkout@v3
- name: Set up Python
Expand All @@ -32,16 +37,7 @@ jobs:
python-version: "3.9"
- name: Install dependencies
run: |
pip install .[cvxpy,miosr] sympy
run-notebooks:
needs: [find-notebooks,setup-python]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
files: ${{ fromJson(needs.find-notebooks.outputs.paths) }}
steps:
- name: output results
pip install .[cvxpy,miosr] sympy nbconvert jupyter
- name: Run Notebook
run: |
echo ${{ matrix.files }}
jupyter nbconvert --execute ${{ matrix.files }}

0 comments on commit e4b2ab2

Please sign in to comment.