1919
2020jobs :
2121 linux :
22-
2322 runs-on : ubuntu-latest
2423 if : " !contains(github.event.head_commit.message, 'no ci')"
2524 strategy :
@@ -29,30 +28,35 @@ jobs:
2928 python-version : ['3.9', '3.10', '3.11', '3.12', '3.13']
3029
3130 steps :
32- - uses : actions/checkout@v1
33- - name : Set up Python ${{ matrix.python-version }}
34- uses : actions/setup-python@v1
35- with :
36- python-version : ${{ matrix.python-version }}
37- - name : Install dependencies
38- run : |
39- python -m pip install --upgrade pip
40- pip install lxml_html_clean
41- pip install -r requirements.txt
42- pip install mosek
43- - name : Update version in setup.py
44- run : >-
45- sed -i "s/{{VERSION_PLACEHOLDER}}/0.0.0/g" setup.py
46- - name : Install PEPit
47- run : |
48- pip install -e .
49- - uses : yaananth/run-notebook@v2
50- env :
51- MOSEKLM_LICENSE_FILE : ${{ secrets.MSK_LICENSE }}
52- RUNNER : ${{ toJson(runner) }}
53- SECRETS : ${{ toJson(secrets) }}
54- GITHUB : ${{ toJson(github) }}
55- with :
56- notebook : " ressources/demo/PEPit_demo.ipynb"
57- isReport : False
58- poll : True
31+ - uses : actions/checkout@v1
32+
33+ - name : Set up Python ${{ matrix.python-version }}
34+ uses : actions/setup-python@v4
35+ with :
36+ python-version : ${{ matrix.python-version }}
37+
38+ - name : Install dependencies
39+ run : |
40+ python -m pip install --upgrade pip
41+ pip install lxml_html_clean
42+ pip install -r requirements.txt
43+ pip install mosek
44+
45+ - name : Update version in setup.py
46+ run : sed -i "s/{{VERSION_PLACEHOLDER}}/0.0.0/g" setup.py
47+
48+ - name : Install PEPit
49+ run : pip install -e .
50+
51+ - name : Install notebook runner deps (papermill etc.)
52+ run : |
53+ pip install papermill ipykernel nbformat nbconvert
54+
55+ - name : Run demo notebook with papermill
56+ env :
57+ MOSEKLM_LICENSE_FILE : ${{ secrets.MSK_LICENSE }}
58+ RUNNER : ${{ toJson(runner) }}
59+ SECRETS : ${{ toJson(secrets) }}
60+ GITHUB : ${{ toJson(github) }}
61+ run : |
62+ papermill ressources/demo/PEPit_demo.ipynb output.ipynb
0 commit comments