Add simulation extraction and viewing notebook #41
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| schedule: | |
| # nightly tests, 2 am | |
| - cron: "0 2 * * *" | |
| concurrency: | |
| # Probably overly cautious group naming. | |
| # Commits to develop/master will cancel each other, but PRs will only cancel | |
| # commits within the same PR | |
| group: "${{ github.ref }}-${{ github.head_ref }}" | |
| cancel-in-progress: true | |
| defaults: | |
| run: | |
| shell: bash -leo pipefail {0} | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: ["ubuntu-latest", "macos-latest"] | |
| python-version: ["3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Get current date | |
| id: date | |
| run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}" | |
| - uses: mamba-org/setup-micromamba@v2 | |
| with: | |
| environment-file: environment.yaml | |
| cache-environment: true | |
| cache-downloads: true | |
| cache-environment-key: environment-${{ steps.date.outputs.date }} | |
| cache-downloads-key: downloads-${{ steps.date.outputs.date }} | |
| create-args: >- | |
| python=${{ matrix.python-version }} | |
| init-shell: bash | |
| - name: Additional info about the build | |
| run: | | |
| uname -a | |
| df -h | |
| ulimit -a | |
| - name: Environment Information | |
| run: | | |
| micromamba info | |
| micromamba list | |
| - name: Run example notebooks | |
| run: | | |
| python -m pytest -v --nbval-lax --nbval-cell-timeout=3000 -n auto --dist loadscope |