Skip to content

Commit

Permalink
Run notebook tests with latest dependencies (because of better features)
Browse files Browse the repository at this point in the history
  • Loading branch information
opcode81 committed Aug 13, 2024
1 parent ba85f5b commit 8265c56
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,14 @@ isolated_build = True
# this issue is resolved by running pytest-cov within tox development mode, thus not creating an sdist
usedevelop = true
commands =
; Clean up coverage data and run the tests as well as the notebook tests.
; The latter are run only in this environment.
; Clean up coverage data and run the tests.
; Notebook tests are run in the env with the latest dependencies (see below).
coverage erase
pytest -n 4 --cov --cov-append --cov-report=term-missing tests
pytest -n 4 notebooks
deps =
pytest
pytest-cov
pytest-xdist
jupyter==1.0.0
nbconvert==6.5.0
clearml==0.17.1
; NOTE: For some reason including this into setup.py makes things slow locally, fail silently on gitlab
; and lead to non-ending builds (2.5h+) on github. We might want to add it to extra "torch" though (sensai[torch])
pytorch-lightning~=1.1.0
Expand All @@ -44,8 +40,15 @@ allowlist_externals =
[testenv:py_latest_dependencies]
commands =
pytest
; Run the notebook tests with latest dependencies because the newer library versions have better features
; which some of the notebooks make use of
pytest notebooks
deps =
pytest
; these dependencies are required for notebooks executions (nbclear in the tracking tutorial)
jupyter==1.0.0
nbconvert==6.5.0
clearml==0.17.1
; NOTE: For some reason including this into setup.py makes things slow locally, fail silently on gitlab
; and lead to non-ending builds (2.5h+) on github. This dependency should be installable with pip install sensai[torch] though...
pytorch-lightning>=1.1
Expand Down

0 comments on commit 8265c56

Please sign in to comment.