Merge pull request #82 from thewtex/ci-updates #177
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: Notebook tests | |
on: [push, pull_request] | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
name: Test notebooks with nbmake | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: '8' | |
distribution: 'zulu' | |
- name: Install test dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
python3 -m pip install -e ".[test]" | |
python3 -m pip install pyimagej | |
python3 -c "import imagej; ij = imagej.init('2.5.0'); print(ij.getVersion())" | |
- name: Test notebooks | |
run: | | |
pytest --nbmake --nbmake-timeout=3000 examples/*ipynb |