Skip to content

Commit

Permalink
DX: run pytest with --nbmake flag by default
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Aug 9, 2024
1 parent 1810479 commit 4af341a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/notebook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ jobs:
- run: |
for notebook in $(git ls-files); do
uv pip sync requirements.txt -q
pytest $notebook --nbmake --no-header --no-summary
pytest $notebook --no-header --no-summary
done
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
addopts = [
"--color=yes",
"--durations=0",
"--nbmake",
]
filterwarnings = [
"ignore:Passing a schema to Validator.iter_errors is deprecated.*:DeprecationWarning",
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ skipsdist = True
allowlist_externals =
pytest
commands =
pytest --nbmake {posargs}
pytest {posargs}
description =
Run all notebooks with pytest
passenv =
Expand Down

0 comments on commit 4af341a

Please sign in to comment.