Adding mypy check and test #1200
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: Test notebooks | |
| on: | |
| schedule: | |
| - cron: '0 0 * * 6' # Run at midnight on Saturdays | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| - 'staging-*' | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Graphviz | |
| uses: ts-graphviz/setup-graphviz@v1 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| enable-cache: true | |
| - name: Install pandoc | |
| run: | | |
| sudo apt install -y pandoc | |
| - name: Install Python packages | |
| run: | | |
| uv sync --all-extras --dev | |
| - name: Run Notebook Test | |
| run: | | |
| uv run ./scripts/test_notebooks.sh |