| 1 | name: Notebook Tests |
| 2 | |
| 3 | on: |
| 4 | pull_request: |
| 5 | push: |
| 6 | branches: [main] |
| 7 | |
| 8 | jobs: |
| 9 | run: |
| 10 | runs-on: ubuntu-latest |
| 11 | |
| 12 | steps: |
| 13 | - uses: actions/checkout@v3 |
| 14 | |
| 15 | - name: Setup Micromamba Python 3 |
| 16 | uses: mamba-org/setup-micromamba@v1 |
| 17 | with: |
| 18 | environment-name: TEST |
| 19 | init-shell: bash |
| 20 | create-args: >- |
| 21 | python=3 pip --file requirements.txt --file requirements-dev.txt --channel conda-forge |
| 22 | |
| 23 | - name: Install branca |
| 24 | shell: bash -l {0} |
| 25 | run: | |
| 26 | python -m pip install -e . --no-deps --force-reinstall |
| 27 | |
| 28 | - name: Notebook tests |
| 29 | shell: bash -l {0} |
| 30 | run: | |
| 31 | python -m pytest --nbval-lax examples |