notebook-nightly #1
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: notebook-nightly | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * *" | |
env: | |
NB_KERNEL: python | |
NMA_REPO: course-content | |
NMA_MAIN_BRANCH: main | |
jobs: | |
process-notebooks: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
ref: ${{ github.head_ref }} | |
- name: Run Notebooks | |
uses: ./.github/actions/check-notebooks | |
with: | |
run_all: 'true' | |
exec_flag: '--execute' | |
# - name: Update READMEs | |
# run: python ci/generate_tutorial_readmes.py | |
# shell: bash -l {0} | |
# - name: Remove unreferenced derivatives | |
# run: | | |
# python ci/find_unreferenced_content.py > to_remove.txt | |
# if [ -s to_remove.txt ]; then git rm --pathspec-from-file=to_remove.txt; fi | |
# shell: bash -l {0} | |
# - name: Commit post-processed files | |
# run: | | |
# git config --local user.email "[email protected]" | |
# git config --local user.name "GitHub Action" | |
# git add '**/*.ipynb' | |
# git add '**/static/*.png' | |
# git add '**/solutions/*.py' | |
# git add '**/README.md' | |
# git diff-index --quiet HEAD || git commit -m "Process tutorial notebooks" | |
# shell: bash -l {0} | |
# - name: Push post-processed files | |
# uses: ad-m/[email protected] | |
# with: | |
# github_token: ${{ secrets.GITHUB_TOKEN }} | |
# branch: ${{ github.head_ref }} | |