Skip to content

Commit

Permalink
Fix gallery tests to handle allensdk pinning pynwb/hdmf
Browse files Browse the repository at this point in the history
  • Loading branch information
rly committed Jul 30, 2021
1 parent 3d84c51 commit fe4ce3d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 7 deletions.
2 changes: 1 addition & 1 deletion requirements-doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ sphinx
matplotlib
sphinx_rtd_theme
sphinx-gallery
allensdk # note that as of allensdk 2.10.0, python 3.8 is not supported
allensdk>=2.11.0 # python 3.8 is not supported in allensdk<2.11
31 changes: 25 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,13 @@ install_command =
deps =
-rrequirements-dev.txt
-rrequirements.txt
-rrequirements-doc.txt

commands =
pip install -r requirements-doc.txt
# installing allensdk may downgrade certain requirements so
# reinstall the repo with its requirements
pip install -r requirements-dev.txt -r requirements.txt
pip install -U -e .
python test.py --example

[testenv:gallery-py37]
Expand All @@ -130,30 +134,45 @@ commands = {[testenv:gallery]commands}
# Test with python 3.9, pinned dev and doc reqs, and upgraded run requirements
[testenv:gallery-py39-upgrade-dev]
basepython = python3.9

install_command =
pip install -U -e . {opts} {packages}

deps =
-rrequirements-dev.txt
-rrequirements-doc.txt
commands = {[testenv:gallery]commands}

commands =
pip install -r requirements-doc.txt
# installing allensdk may downgrade certain requirements so
# reinstall the repo with its requirements
pip install -r requirements-dev.txt -r requirements.txt
pip install -U -e .
python test.py --example

# Test with python 3.9, pinned dev and doc reqs, and pre-release run requirements
[testenv:gallery-py39-upgrade-dev-pre]
basepython = python3.9

install_command =
pip install -U --pre -e . {opts} {packages}

deps =
-rrequirements-dev.txt
-rrequirements-doc.txt
commands = {[testenv:gallery]commands}

commands =
pip install -r requirements-doc.txt
# installing allensdk may downgrade certain requirements so
# reinstall the repo with its requirements
pip install -r requirements-dev.txt -r requirements.txt
pip install -U --pre -e .
python test.py --example

# Test with python 3.7, pinned dev reqs, and minimum run requirements
[testenv:gallery-py37-min-req]
basepython = python3.7
deps =
-rrequirements-dev.txt
-rrequirements-min.txt
-rrequirements-doc.txt
commands = {[testenv:gallery]commands}

[testenv:validation-py39]
Expand Down

0 comments on commit fe4ce3d

Please sign in to comment.