File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 38
38
devdeps: git+https://github.com/astropy/pyvo.git# egg=pyvo
39
39
devdeps: git+https://github.com/astropy/astroquery.git# egg=astroquery
40
40
41
- allowlist_externals = bash, sed, npx
41
+ allowlist_externals = bash, npx
42
42
43
43
commands =
44
44
pip freeze
@@ -55,7 +55,9 @@ commands =
55
55
56
56
!buildhtml: pytest --nbval-lax -vv --suppress-no-test-exit-code --durations =10 tutorials
57
57
58
- buildhtml: bash -c " find tutorials -name '*md' | grep -f ignore_testing | sort | uniq | xargs -n 1 sed -i '' -e 's|name: python3|name: python3\nskip_execution: true|g'"
58
+ # sed -i needs a bit of hacky conditional on ubuntu to cover the case of an empty ignore
59
+ 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"
60
+
59
61
buildhtml: npx myst build --execute
60
62
buildhtml: bash rm _build/html/*thebe*.js
61
63
You can’t perform that action at this time.
0 commit comments