Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding xradar-basics notebook #59

Merged
merged 9 commits into from
Aug 12, 2024
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