Minor change #18
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 Jupyter Notebooks | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test-notebooks: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.9' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install nbconvert | |
| - name: Execute Jupyter Notebooks | |
| run: | | |
| for notebook in $(find . -name "*.ipynb" | grep -v _solution | grep -v _temp); do | |
| echo "Running $notebook" | |
| jupyter nbconvert --to notebook --execute "$notebook" --stdout > /dev/null || exit 1 | |
| done |