Add xeus-cpp tutorial notebooks #25
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: Check C++ Notebooks | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| execute-notebooks: | |
| name: Execute C++ Notebooks | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash -el {0} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up micromamba environment | |
| uses: mamba-org/setup-micromamba@v2 | |
| with: | |
| environment-file: environment.yml | |
| cache-environment: true | |
| - name: List available kernels | |
| run: jupyter kernelspec list | |
| - name: Run C++ Tests via Pytest | |
| run: | | |
| mkdir -p executed | |
| $CONDA_PREFIX/bin/pytest tests/test_notebooks.py -sv | |
| - name: Upload executed notebooks as artifact | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: executed-cpp-notebooks | |
| path: executed/ | |
| if-no-files-found: ignore |