Skip to content

Commit

Permalink
Update tox.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
mavaylon1 authored Mar 3, 2024
1 parent 72d3a5d commit c5b3714
Showing 1 changed file with 16 additions and 55 deletions.
71 changes: 16 additions & 55 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# and then run "tox" from this directory.

[tox]
envlist = py38, py39, py310, py311
envlist = py38, py39, py310, py311, py 312
requires = pip >= 22.0

[testenv]
Expand All @@ -22,43 +22,15 @@ deps =
commands =
python -m pip check # Check for conflicting packages
python -m pip list
python test.py -v
pytest -v

# Env to create coverage report locally
[testenv:localcoverage]
basepython = python3.11
commands =
python -m coverage run test.py --pynwb
coverage html -d tests/coverage/htmlcov

# Test with python 3.11; pinned dev and optional reqs
[testenv:py311-optional]
basepython = python3.11
install_command =
python -m pip install {opts} {packages}
deps =
-rrequirements-dev.txt
; -rrequirements-opt.txt
commands = {[testenv]commands}

# Test with python 3.11; pinned dev and optional reqs; upgraded run reqs
[testenv:py311-upgraded]
basepython = python3.11
# Test with python 3.12; pinned dev reqs; upgraded run reqs
[testenv:py312-upgraded]
basepython = python3.12
install_command =
python -m pip install -U {opts} {packages}
deps =
-rrequirements-dev.txt
; -rrequirements-opt.txt
commands = {[testenv]commands}

# Test with python 3.11; pinned dev and optional reqs; upgraded, pre-release run reqs
[testenv:py311-prerelease]
basepython = python3.11
install_command =
python -m pip install -U --pre {opts} {packages}
deps =
-rrequirements-dev.txt
; -rrequirements-opt.txt
commands = {[testenv]commands}

# Test with python 3.8; pinned dev reqs; minimum run reqs
Expand Down Expand Up @@ -91,29 +63,18 @@ commands = {[testenv:build]commands}
basepython = python3.11
commands = {[testenv:build]commands}

[testenv:build-py311-optional]
basepython = python3.11
[testenv:build-py312-optional]
basepython = python3.12
deps =
-rrequirements-dev.txt
; -rrequirements-opt.txt
commands = {[testenv:build]commands}

[testenv:build-py311-upgraded]
basepython = python3.11
[testenv:build-py312-upgraded]
basepython = python3.12
install_command =
python -m pip install -U {opts} {packages}
deps =
-rrequirements-dev.txt
; -rrequirements-opt.txt
commands = {[testenv:build]commands}

[testenv:build-py311-prerelease]
basepython = python3.11
install_command =
python -m pip install -U --pre {opts} {packages}
deps =
-rrequirements-dev.txt
; -rrequirements-opt.txt
commands = {[testenv:build]commands}

[testenv:build-py38-minimum]
Expand Down Expand Up @@ -162,9 +123,9 @@ basepython = python3.11
deps = {[testenv:gallery]deps}
commands = {[testenv:gallery]commands}

# Test with python 3.11; pinned dev, doc, and optional reqs; upgraded run reqs
[testenv:gallery-py311-upgraded]
basepython = python3.11
# Test with python 3.12; pinned dev, doc, and optional reqs; upgraded run reqs
[testenv:gallery-py312-upgraded]
basepython = python3.12
deps =
-rrequirements-dev.txt
commands =
Expand All @@ -174,9 +135,9 @@ commands =
python -m pip list
python test.py --example

# Test with python 3.11; pinned dev, doc, and optional reqs; pre-release run reqs
[testenv:gallery-py311-prerelease]
basepython = python3.11
# Test with python 3.12; pinned dev, doc, and optional reqs; pre-release run reqs
[testenv:gallery-py312-prerelease]
basepython = python3.12
deps =
-rrequirements-dev.txt
commands =
Expand All @@ -191,4 +152,4 @@ commands =
basepython = python3.8
deps =
-rrequirements-min.txt
commands = {[testenv:gallery]commands}
commands = {[testenv:gallery]commands}

0 comments on commit c5b3714

Please sign in to comment.