forked from Gurobi/gurobipy-pandas
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 967 Bytes
/
notebook-examples.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Run the example notebooks against python3.8 on ubuntu, from a direct install.
name: Notebook examples
on:
workflow_call:
permissions:
contents: read
jobs:
notebook-examples:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python: ["3.8"]
gurobipy: ["10.0.3", "11.0.0"]
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install tooling
run: |
python -m pip install --upgrade pip
- name: Install dependencies
run: |
python -m pip install gurobipy==${{ matrix.gurobipy }}
python -m pip install .
python -m pip install -r docs/requirements-examples.txt
- name: Execute example notebooks
run: |
python -m jupytext --set-kernel python3 --execute --to ipynb docs/source/examples/*.md