Skip to content

Commit

Permalink
Add mypy nbs check
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescMartiEscofetQC committed Jun 25, 2024
1 parent ed92851 commit 88bd992
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,19 @@ 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: Set up pixi
uses: prefix-dev/[email protected]
- name: Run mypy
run: |
jupyter nbconvert --to script docs/examples/*.ipynb
for file in docs/examples/*.txt; do mv -- "$file" "${file%.txt}.py"; done
mypy docs/examples/*.py
unit-tests:
name: Unit Tests
timeout-minutes: 30
Expand Down

0 comments on commit 88bd992

Please sign in to comment.