Merge pull request #139 from PerformanceEstimation/fix/linesearch_naming #271
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: Execute notebook | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: | |
| - 'master' | |
| - 'develop' | |
| push: | |
| branches: | |
| - 'master' | |
| - 'develop' | |
| create: | |
| branches: | |
| - 'master' | |
| tags: | |
| - '**' | |
| jobs: | |
| linux: | |
| runs-on: ubuntu-22.04 | |
| if: "!contains(github.event.head_commit.message, 'no ci')" | |
| strategy: | |
| max-parallel: 5 | |
| matrix: | |
| python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: 'pip' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install lxml_html_clean | |
| python -m pip install -r requirements.txt | |
| python -m pip install mosek | |
| - name: Update version in setup.py | |
| run: sed -i "s/{{VERSION_PLACEHOLDER}}/0.0.0/g" setup.py | |
| - name: Install PEPit | |
| run: python -m pip install -e . | |
| - name: Install notebook runner deps (papermill etc.) | |
| run: | | |
| python -m pip install papermill ipykernel nbformat nbconvert | |
| - name: Run demo notebook with papermill | |
| env: | |
| MOSEKLM_LICENSE_FILE: ${{ secrets.MSK_LICENSE }} | |
| RUNNER: ${{ toJson(runner) }} | |
| SECRETS: ${{ toJson(secrets) }} | |
| GITHUB: ${{ toJson(github) }} | |
| run: | | |
| papermill ressources/demo/PEPit_demo.ipynb output.ipynb |