always push to main (#993) #6
This file contains 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 Notebook | |
on: | |
pull_request: | |
branches: [main] | |
paths: | |
- '**.py' | |
- '**.ipynb' | |
push: | |
branches: [main] | |
paths: | |
- '**.py' | |
- '**.ipynb' | |
jobs: | |
example_notebooks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.12" | |
- name: Install dependencies | |
run: | | |
sudo apt-get install graphviz | |
pip install -e .[docs] | |
pip install -e .[test] | |
- name: Run notebooks | |
run: make run_notebooks |