Skip to content

build(deps): bump codecov/codecov-action from 4.5.0 to 4.6.0 #52

build(deps): bump codecov/codecov-action from 4.5.0 to 4.6.0

build(deps): bump codecov/codecov-action from 4.5.0 to 4.6.0 #52

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