Skip to content

Commit d45349a

Browse files
committed
CI: workaround shallow PR history
1 parent 899f6ed commit d45349a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ commands =
5353
!buildhtml: bash -c 'if [[ $CI == true ]]; then cat ignore_gha_testing >> ignore_testing; fi'
5454

5555
# We only want to run CI in PRs for the notebooks we touched
56-
!buildhtml: bash -c 'if [[ $GITHUB_EVENT_NAME == pull_request ]]; then git diff origin/main --name-only tutorials | grep .md; else find tutorials -name "*.md"; fi | grep -vf ignore_testing | xargs jupytext --to notebook '
56+
!buildhtml: bash -c 'if [[ $GITHUB_EVENT_NAME == pull_request ]]; then git fetch origin main --depth=1; git diff origin/main --name-only tutorials | grep .md; else find tutorials -name "*.md"; fi | grep -vf ignore_testing | xargs jupytext --to notebook '
5757

5858
!buildhtml: pytest --nbval-lax -vv --durations=10 tutorials
5959
buildhtml: sphinx-build -b html . _build/html -D nb_execution_mode=auto -nWT --keep-going

0 commit comments

Comments
 (0)