Skip to content

Commit a006668

Browse files
committed
CI: adding logic for force_run:all_tests label
1 parent e544dca commit a006668

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ setenv =
1212
FIREFLY_URL = https://irsa.ipac.caltech.edu/irsaviewer # fallback url for firefly notebooks if not defined in code
1313
devdeps: PIP_EXTRA_INDEX_URL = https://pypi.anaconda.org/scientific-python-nightly-wheels/simple https://pypi.anaconda.org/astropy/simple
1414

15-
passenv = CI, CIRCLECI, GITHUB_EVENT_NAME
15+
passenv = CI, CIRCLECI, GITHUB_EVENT_NAME, GITHUB_EVENT_PATH
1616

1717
deps =
1818
# We use these files to specify all the dependencies, and below we override
@@ -53,7 +53,7 @@ commands =
5353
!buildhtml: bash -c 'if [[ $CI == true ]]; then cat ignore_gha_testing >> ignore_testing; fi'
5454

5555
# We only want to run CI in PRs for the notebooks we touched
56-
!buildhtml: bash -c 'if [[ $GITHUB_EVENT_NAME == pull_request ]]; 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 '
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 '
5757

5858
!buildhtml: pytest --nbval-lax -vv --suppress-no-test-exit-code --durations=10 tutorials
5959
buildhtml: sphinx-build -b html . _build/html -D nb_execution_mode=auto -nWT --keep-going

0 commit comments

Comments
 (0)