Troubleshoot nb issues #21
Workflow file for this run
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: PR Tests | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| activate-environment: pyleo | |
| environment-file: environment.yml | |
| auto-activate-base: false | |
| - name: Install test dependencies | |
| run: | | |
| conda activate pyleo | |
| pip install pytest-xdist nbmake | |
| conda list | |
| - name: Test notebooks | |
| run: | | |
| conda activate pyleo | |
| pytest --nbmake -v --tb=long --overwrite --nbmake-timeout=3600 notebooks/*ipynb || true | |
| - name: Upload executed notebooks | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: executed-notebooks | |
| path: notebooks/*.ipynb | |
| - name: Check for failures | |
| run: | | |
| conda activate pyleo | |
| pytest --nbmake -v --tb=long --nbmake-timeout=3600 notebooks/*ipynb |