Skip to content

Commit dd321da

Browse files
committed
Update CI
1 parent 63ba4d4 commit dd321da

2 files changed

Lines changed: 34 additions & 30 deletions

File tree

.github/workflows/execute_notebook.yaml

Lines changed: 32 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ on:
1919

2020
jobs:
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

.github/workflows/tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
strategy:
6666
max-parallel: 5
6767
matrix:
68-
python-version: ['3.9', '3.10', '3.11', '3.12']
68+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
6969

7070
steps:
7171
- uses: actions/checkout@v1
@@ -98,7 +98,7 @@ jobs:
9898
strategy:
9999
max-parallel: 5
100100
matrix:
101-
python-version: ['3.9', '3.10', '3.11', '3.12']
101+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
102102

103103
steps:
104104
- uses: actions/checkout@v1

0 commit comments

Comments
 (0)