@@ -43,17 +43,19 @@ allowlist_externals = bash, jupyter-book
4343commands =
4444 pip freeze
4545
46- # Ignore testing the tutorials listed in ignore_testing file. We have some OS specific ignores,
47- # too due to issues with e.g. multiprocessing and problems in upstream dependency
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'
46+ # Ignore some tutorials for various types of testing. The individual lists are stored in the `ignore_tutorials`
47+ # directory and are documented about the specific reasons of them included in the ignores. These files are kept under version control.
48+ # The files `ignore_testing` and `ignore_execution` are generated during the CI jobs and are not under version control.
49+ bash -c ' cat ignore_tutorials/ignore_all_testing >> ignore_testing'
50+ bash -c ' if python -c "import platform; print(platform.platform())" | grep -i macos; then cat ignore_tutorials/ignore_osx_testing >> ignore_testing; fi'
51+ bash -c ' if python -c "import platform; print(platform.platform())" | grep -i win; then cat ignore_tutorials/ignore_windows_testing >> ignore_testing; fi'
52+ bash -c ' if [[ $CI == true ]]; then cat ignore_tutorials/ignore_gha_testing >> ignore_testing; fi'
53+ bash -c ' if [[ $CIRCLECI == true ]]; then cat ignore_tutorials/ignore_circleci_testing >> ignore_testing; fi'
5254
53- buildhtml: bash -c " cat ignore_rendenring >> ignore_testing"
55+ buildhtml: bash -c ' cat ignore_tutorials/ ignore_rendenring >> ignore_testing'
5456
5557 # We only want to run CI in PRs for the notebooks we touched
56- !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 '
58+ !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/ignore_testing | xargs jupytext --to notebook '
5759
5860 !buildhtml: pytest --nbval-lax -vv --suppress-no-test-exit-code --durations =10 tutorials
5961
0 commit comments