Skip to content

Commit 4523cb4

Browse files
committed
CI: adding conditional for cronjobs
1 parent d148b8d commit 4523cb4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/ci_devtests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,11 @@ jobs:
3131
- name: Install dependencies
3232
run: python -m pip install --upgrade tox
3333

34+
- name: Set output for cron
35+
if: ${{ github.event_name == 'schedule' }}
36+
env:
37+
posargs: --report-log cron_output-log.json
38+
run: echo $posargs
39+
3440
- name: Execute notebooks as testing
3541
run: tox -e py312-test-devdeps

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ commands =
3737
!buildhtml: bash -c 'find content -name "*.md" | grep -vf ignore_testing | xargs jupytext --to notebook '
3838

3939
# We rerun the failed tests hoping that it filters out some flaky server behaviour
40-
!buildhtml: pytest --nbval --reruns=1 --reruns-delay=30 content/
40+
!buildhtml: pytest --nbval --reruns=1 --reruns-delay=30 {posargs} content/
4141
buildhtml: sphinx-build -b html . _build/html -D nb_execution_mode=auto -nWT --keep-going
4242

4343
pip_pre =

0 commit comments

Comments
 (0)