Add effectiveness #358
Workflow file for this run
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: Example Notebooks | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
run-notebooks: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
python-version: | |
- "3.9" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install | |
run: | | |
python -m pip install --upgrade pip | |
pip install . | |
pip install jupyter nbconvert matplotlib seaborn | |
- name: Command line example test | |
run: | | |
jupyter nbconvert --execute --to notebook --inplace examples/notebooks/basic_with_command_line.ipynb | |
# No traceback (generated by a subprocess) should be in the file. | |
if grep --after-context=15 Traceback examples/notebooks/basic_with_command_line.ipynb; then | |
exit 1 | |
fi | |
- name: Pure Python notebooks | |
run: | | |
jupyter nbconvert --execute --to notebook --inplace examples/notebooks/contaminant_clustering.ipynb | |
jupyter nbconvert --execute --to notebook --inplace examples/notebooks/prob_distributions.ipynb | |
jupyter nbconvert --execute --to notebook --inplace examples/notebooks/scenario_plots.ipynb |