build(deps): bump pypa/gh-action-pypi-publish from 1.10.2 to 1.11.0 #51
This file contains 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: Run Demo | |
on: [push, pull_request] | |
jobs: | |
tests: | |
name: Run Demo | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
env: | |
ENV_NAME: testing | |
strategy: | |
fail-fast: false | |
matrix: | |
demo: ["end_to_end_example", "hera_sim_defaults", "hera_sim_simulator", "hera_sim_tour", "mutual_coupling_example", "polybeam_simulation", "visibility_simulator"] | |
steps: | |
- uses: actions/checkout@master | |
with: | |
fetch-depth: 1 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- uses: mpi4py/setup-mpi@v1 | |
- name: Install | |
run: | | |
pip install --upgrade pip | |
pip install .[tests] | |
pip install papermill ipykernel | |
- name: Install ipykernel | |
run: python -m ipykernel install --user --name herasim | |
- name: Run Notebook | |
run: | | |
papermill -k herasim docs/tutorials/${{ matrix.demo }}.ipynb output-${{ matrix.demo }}.ipynb | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: ${{ matrix.demo }} | |
path: output-${{ matrix.demo }}.ipynb |