Skip to content

Commit

Permalink
Add pytype/pylint testing of notebooks
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 590572464
Change-Id: If7331ae624c99c36ec9c32de7b4b12ce7edfe561
  • Loading branch information
jagapiou authored and copybara-github committed Dec 13, 2023
1 parent 1481dad commit 4218be2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/actions/install-examples/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,10 @@ runs:
- name: Show installed dependencies
shell: bash
run: pip list

- name: Convert notebooks
run: |
jupyter nbconvert --to=python --output-dir=notebooks \
--RegexRemovePreprocessor.patterns='!pip' \
$(find examples -type f -iname '*.ipynb')
ls notebooks/*.py
3 changes: 3 additions & 0 deletions .github/workflows/pylint-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ jobs:

- name: Run PyLint on examples
run: pylint --errors-only examples

- name: Run PyLint on notebooks
run: pylint --errors-only notebooks
3 changes: 3 additions & 0 deletions .github/workflows/pytype-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ jobs:

- name: Run PyType on examples
run: pytype examples

- name: Run PyType on notebooks
run: pytype --pythonpath=. notebooks

0 comments on commit 4218be2

Please sign in to comment.