Skip to content

Commit 4bb84ae

Browse files
committed
CI: minor fixes in the build scripts
1 parent 1127946 commit 4bb84ae

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@ commands =
7373
# We only skip testing untouched tutorials in PRs; in cron and dispatch all should be tested
7474
!buildhtml: bash -c 'if [[ $GITHUB_EVENT_NAME == pull_request && -z "$(grep force_run:all_tests ${GITHUB_EVENT_PATH})" ]]; then cat changed_tutorials; else cat all_tutorials; fi | grep -vf ignore_testing | xargs jupytext --to notebook '
7575

76-
!buildhtml: bash -c "echo 'Notebooks ignored (not tested/executed) in this job:\n'; cat ignore_testing"
76+
!buildhtml: bash -c "echo '📝📝📝 Notebooks ignored (not tested/executed) in this job:'; cat ignore_testing"
7777
!buildhtml: pytest --nbval-lax -vv --suppress-no-test-exit-code --durations=10 tutorials
7878

7979
# We don't want to execute in rendering the ones we ignore for testing
80-
buildhtml: bash -c 'grep -f ignore_testing all_tutorials > ignore_execute'
80+
buildhtml: bash -c 'grep -f ignore_testing all_tutorials || true > ignore_execute'
8181

8282
# On CircleCI rendering preview, we also don't want to execute anything that hasn't been modified
83-
buildhtml: bash -c 'if [[ $CIRCLECI == true ]]; then grep -vf changed_tutorials all_tutorials >> ignore_execute; fi'
83+
buildhtml: bash -c 'if [[ $CIRCLECI == true ]]; then grep -vf changed_tutorials all_tutorials || true >> ignore_execute; fi'
8484

8585
# sed -i needs a bit of hacky conditional on ubuntu to cover the case of an empty ignore
8686
buildhtml: bash -c 'if [ -s ignore_execute ]; then for name in $(cat ignore_execute | sort| uniq); do if [ -z "$(head -n 20 ${name}| grep execute:)" ]; then sed -i -e "s|kernelspec:|execute:\n skip: true\nkernelspec:|g" ${name}; fi; done;fi'

0 commit comments

Comments
 (0)