Skip to content

Commit ccb5984

Browse files
committed
MAINT: adding extra info to build log
1 parent 46b3d04 commit ccb5984

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ deps =
3838
devdeps: git+https://github.com/astropy/pyvo.git#egg=pyvo
3939
devdeps: git+https://github.com/astropy/astroquery.git#egg=astroquery
4040

41-
allowlist_externals = bash, jupyter-book
41+
allowlist_externals = bash
4242

4343

4444
install_command =
@@ -67,11 +67,13 @@ commands =
6767
# We only want to run CI in PRs for the notebooks we touched
6868
!buildhtml: bash -c 'if [[ $GITHUB_EVENT_NAME == pull_request && -z "$(grep force_run:all_tests ${GITHUB_EVENT_PATH})" ]]; 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 '
6969

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

7273
# sed -i needs a bit of hacky conditional on ubuntu to cover the case of an empty ignore
7374
buildhtml: bash -c "find tutorials -name '*md' | grep -f ignore_testing | sort | uniq > ignore_execute; if [ -s ignore_execute ]; then cat ignore_execute | xargs -n 1 sed -i -e 's|name: python3|name: python3\nskip_execution: true|g';fi"
7475

76+
buildhtml: bash -c "echo 'Notebooks ignored (not tested/executed) in this job:\n'; cat ignore_execute"
7577
# Using srtict so we fail with trackbacks and debug mode to have a richer log
7678
buildhtml: bash -c "npx myst build --execute --html --strict -d"
7779

0 commit comments

Comments
 (0)