diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a9dabc..e40cdc9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,6 +25,21 @@ jobs: - name: pre-commit run: pixi run pre-commit-run --color=always --show-diff-on-failure + mypy-example-nbs: + name: Check notebooks mypy + timeout-minutes: 5 + runs-on: ubuntu-latest + steps: + - name: Checkout branch + uses: actions/checkout@v4 + - name: Set up pixi + uses: prefix-dev/setup-pixi@v0.8.1 + - name: Run mypy + run: | + pixi run jupyter nbconvert --to script docs/examples/*.ipynb + for file in docs/examples/*.txt; do mv -- "$file" "${file%.txt}.py"; done + pixi run mypy docs/examples/*.py + unit-tests: name: Unit Tests timeout-minutes: 30