Skip to content

Commit

Permalink
Merge f63281a into 4f71ccf
Browse files Browse the repository at this point in the history
  • Loading branch information
aladinor authored Aug 12, 2024
2 parents 4f71ccf + f63281a commit b5dbffe
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 b5dbffe

Please sign in to comment.