Skip to content

Commit

Permalink
CI: add cron to CI (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsipocz authored Sep 7, 2024
1 parent e97afc9 commit f4f4338
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/notebooks.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: NetworkX Notebooks
name: Testing notebooks

on:
push:
Expand All @@ -7,6 +7,10 @@ on:
pull_request:
branches:
- main
schedule:
- cron: '0 5 * * 1'
workflow_dispatch:


jobs:
build:
Expand Down Expand Up @@ -34,7 +38,7 @@ jobs:
fi
python3 -m venv ~/venv
source ~/venv/bin/activate
- name: Install dependencies
run: |
pip install -U pip
Expand All @@ -47,7 +51,7 @@ jobs:
# pre-commit wants files to be staged
find content/ -name "*.ipynb" -exec git add {} \;
pre-commit run --all-files --show-diff-on-failure --color always
- name: Test with nbval
run: |
find content/algorithms content/generators -name "*.md" -exec jupytext --to notebook {} \;
Expand Down

0 comments on commit f4f4338

Please sign in to comment.