Skip to content

Commit

Permalink
adding xradar-basics notebook (#59)
Browse files Browse the repository at this point in the history
* adding xradar-basics notebook

* adding xradar-basics notebook

* adding xradar-basics notebook to myst.yml file

* adding debug lines (similar to #64) in buil-book-pullrequest.yaml file

* adding debug lines (similar to #64) in buil-book.yaml file

---------

Co-authored-by: Kai Mühlbauer <kmuehlbauer@wradlib.org>
  • Loading branch information
aladinor and kmuehlbauer authored Aug 12, 2024
1 parent 4f71ccf commit 42e8b5d
Show file tree
Hide file tree
Showing 4 changed files with 637 additions and 12 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/build-book-pullrequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,13 @@ jobs:
echo "REBUILD=$(git diff --quiet ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} -- binder && echo unchanged || echo changed)" >> $GITHUB_ENV
- name: remove Dockerfile
run: |
if [[ ${{ env.REBUILD }} == "changed" ]]; then
echo "binder-folder HAS changed - NEEDS rebuild"
rm binder/Dockerfile
else
echo "binder-folder NOT changed - NO rebuild"
fi
# if [[ ${{ env.REBUILD }} == "changed" ]]; then
# echo "binder-folder HAS changed - NEEDS rebuild"
# rm binder/Dockerfile
# else
# echo "binder-folder NOT changed - NO rebuild"
# fi
rm binder/Dockerfile
- name: update jupyter dependencies with repo2docker
uses: jupyterhub/repo2docker-action@master
with:
Expand Down Expand Up @@ -78,6 +79,8 @@ jobs:
mamba list
echo env
# run notebooks
ls -lart notebooks
ls -lart /work/notebooks
pytest -n auto --verbose --durations=15 --pyargs notebooks
# build the book and copy to outside /work-folder
myst build --ci --html
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/build-book.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,13 @@ jobs:
echo "REBUILD=$(git diff --quiet ${{ github.event.pull_request.before }}..${{ github.event.after }} -- binder && echo unchanged || echo changed)" >> $GITHUB_ENV
- name: remove Dockerfile
run: |
if [[ ${{ env.REBUILD }} == "changed" ]]; then
echo "binder-folder HAS changed - NEEDS rebuild"
rm binder/Dockerfile
else
echo "binder-folder NOT changed - NO rebuild"
fi
# if [[ ${{ env.REBUILD }} == "changed" ]]; then
# echo "binder-folder HAS changed - NEEDS rebuild"
# rm binder/Dockerfile
# else
# echo "binder-folder NOT changed - NO rebuild"
# fi
rm binder/Dockerfile
- name: update jupyter dependencies with repo2docker
uses: jupyterhub/repo2docker-action@master
with:
Expand Down Expand Up @@ -72,6 +73,8 @@ jobs:
- name: Build the book
run: |
# run notebooks
ls -lart notebooks
ls -lart /work/notebooks
pytest -n auto --verbose --durations=15 --pyargs notebooks
# build the book and copy to outside /work-folder
myst build --ci --html
Expand Down
1 change: 1 addition & 0 deletions myst.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ project:
- title: Radar Software Foundations
children:
- file: notebooks/xradar-pyart/pyart-basics.ipynb
- file: notebooks/xradar-pyart/xradar-basics.ipynb
- title: Notebook Environment
children:
- file: notebooks/environment
Expand Down
Loading

0 comments on commit 42e8b5d

Please sign in to comment.