Skip to content

Commit f0199e7

Browse files
authored
Merge pull request #51 from bsipocz/CI_run_testsh_from_tox
CI: use the test.sh in tox
2 parents 7496e67 + 179d66d commit f0199e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ for file in ${files_to_process}; do
2727
notebook_files+=("${notebook_file}")
2828
done
2929

30-
pytest --nbval-lax
30+
pytest --nbval-lax -vv --suppress-no-test-exit-code --durations=10
3131

3232
# Clean up ipynb files that were converted. Any stray ipynb files that were
3333
# _not_ the result of conversion from Markdown will be left alone.

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ commands =
3939
# We only want to run CI in PRs for the notebooks we touched
4040
!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 '
4141

42-
!buildhtml: pytest --nbval-lax -vv --suppress-no-test-exit-code --durations=10 tutorials
42+
!buildhtml: bash test.sh
4343

4444
buildhtml: make html
4545

0 commit comments

Comments
 (0)