From 3037172c22bf3e79d8d7478fbc290c645aed8028 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brigitta=20Sip=C5=91cz?= Date: Sat, 7 Sep 2024 09:39:51 -0400 Subject: [PATCH] CI: add cron to CI --- .github/workflows/notebooks.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/notebooks.yml b/.github/workflows/notebooks.yml index 1863e2f4..73b5455c 100644 --- a/.github/workflows/notebooks.yml +++ b/.github/workflows/notebooks.yml @@ -1,4 +1,4 @@ -name: NetworkX Notebooks +name: Testing notebooks on: push: @@ -7,6 +7,10 @@ on: pull_request: branches: - main + schedule: + - cron: '0 5 * * 1' + workflow_dispatch: + jobs: build: @@ -34,7 +38,7 @@ jobs: fi python3 -m venv ~/venv source ~/venv/bin/activate - + - name: Install dependencies run: | pip install -U pip @@ -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 {} \;