Skip to content

Commit

Permalink
Testing Notebooks with nbmake; (#1135)
Browse files Browse the repository at this point in the history
* Testing Notebooks with `nbmake`; https://semaphoreci.com/blog/test-jupyter-notebooks-with-pytest-and-nbmake
* package updates
* flakey test wrapped in retry
  • Loading branch information
andrewbolster authored Apr 14, 2024
1 parent 8b4b72c commit c142fb2
Show file tree
Hide file tree
Showing 9 changed files with 2,009 additions and 1,909 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/notebooks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release

on:
- push
- pull_request

jobs:
notebooks:
name: Notebooks
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.9"

- name: Upgrade pip
run: |
pip install --constraint=.github/workflows/constraints.txt pip
pip --version
- name: Install Poetry
run: |
pip install --constraint=.github/workflows/constraints.txt poetry
poetry --version
- name: Install dependencies for notebooks
run: |
poetry install --with dev
- name: Run notebooks tests
run: |
poetry run pytest --nbmake notebooks/*.ipynb
8 changes: 0 additions & 8 deletions .idea/.gitignore

This file was deleted.

11 changes: 0 additions & 11 deletions .idea/aws.xml

This file was deleted.

6 changes: 6 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ Data Sources
* `NI Water Quality Data: <https://www.niwater.com/>`_


Notes
-----

* Update Notebooks: `poetry run pytest --nbmake --overwrite notebooks/*.ipynb`


Credits
-------

Expand Down
2 changes: 1 addition & 1 deletion docs/CNAME
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bolster.help
bolster.help
Loading

0 comments on commit c142fb2

Please sign in to comment.