Precompute __antpair2ind_cache #592
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: 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@v6.2.0 | |
| with: | |
| python-version-file: pyproject.toml | |
| - uses: mpi4py/setup-mpi@v1 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - name: Install | |
| run: | | |
| uv sync --locked --all-extras --group doctest | |
| - name: Install ipykernel | |
| run: uv run python -m ipykernel install --user --name herasim | |
| - name: Run Notebook | |
| run: | | |
| uv run papermill -k herasim docs/tutorials/${{ matrix.demo }}.ipynb output-${{ matrix.demo }}.ipynb | |
| - uses: actions/upload-artifact@v7 | |
| if: always() | |
| with: | |
| name: ${{ matrix.demo }} | |
| path: output-${{ matrix.demo }}.ipynb |