File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -45,16 +45,17 @@ commands =
45
45
46
46
# Ignore testing the tutorials listed in ignore_testing file. We have some OS specific ignores,
47
47
# too due to issues with e.g. multiprocessing and problems in upstream dependency
48
- !buildhtml: bash -c ' if python -c "import platform; print(platform.platform())" | grep -i macos; then cat ignore_osx_testing >> ignore_testing; fi'
49
- !buildhtml: bash -c ' if python -c "import platform; print(platform.platform())" | grep -i win; then cat ignore_windows_testing >> ignore_testing; fi'
50
-
51
- !buildhtml: bash -c ' if [[ $CI == true ]]; then cat ignore_gha_testing >> ignore_testing; fi'
48
+ bash -c ' if python -c "import platform; print(platform.platform())" | grep -i macos; then cat ignore_osx_testing >> ignore_testing; fi'
49
+ bash -c ' if python -c "import platform; print(platform.platform())" | grep -i win; then cat ignore_windows_testing >> ignore_testing; fi'
50
+ bash -c ' if [[ $CI == true ]]; then cat ignore_gha_testing >> ignore_testing; fi '
51
+ bash -c ' if [[ $CIRCLECI == true ]]; then cat ignore_circleci_testing >> ignore_testing; fi'
52
52
53
53
# We only want to run CI in PRs for the notebooks we touched
54
54
!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 '
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
59
buildhtml: npx myst build --execute
59
60
buildhtml: bash rm _build/html/*thebe*.js
60
61
You can’t perform that action at this time.
0 commit comments