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

CI: add cron to CI #133

Merged
merged 1 commit into from
Sep 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading