Skip to content

Commit

Permalink
Fix tox
Browse files Browse the repository at this point in the history
  • Loading branch information
barseghyanartur committed Nov 28, 2024
1 parent dad4a50 commit d920625
Showing 1 changed file with 10 additions and 27 deletions.
37 changes: 10 additions & 27 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,86 +4,69 @@ envlist =
py{39,310,311,312,313}-{customization,dataclasses,django,hypothesis,lazyfuzzy,pydantic,sqlalchemy,sqlmodel,tortoise}
skip_build = True

[baseenv]
passenv = *
allowlist_externals=*
commands =
{envpython} -m pip install -e .[all]
{env:EXTRA_COMMANDS:}

[testenv]
passenv = *
allowlist_externals=*
commands_pre =
{[baseenv]commands}
commands =
cd {toxinidir} && {envpython} -m pip install -e .[all]
{envpython} -m pytest -vrx

[testenv:py{39,310,311,312,313}-customization]
changedir = examples/customization
commands_pre =
{[baseenv]commands}
commands =
sh -c 'cd {toxinidir} && {envpython} -m pip install -e .[all]'
{envpython} manage.py test

[testenv:py{39,310,311,312,313}-dataclasses]
changedir = examples/dataclasses
commands_pre =
{[baseenv]commands}
commands =
sh -c 'cd {toxinidir} && {envpython} -m pip install -e .[all]'
{envpython} manage.py test

[testenv:py{39,310,311,312,313}-django]
changedir = examples/django
commands_pre =
{[baseenv]commands}
commands =
sh -c 'cd {toxinidir} && {envpython} -m pip install -e .[all]'
{envpython} -m pip install -r requirements.in
{envpython} manage.py test

[testenv:py{39,310,311,312,313}-hypothesis]
changedir = examples/hypothesis
commands_pre =
{[baseenv]commands}
commands =
sh -c 'cd {toxinidir} && {envpython} -m pip install -e .[all]'
{envpython} -m pip install -r requirements.in
{envpython} manage.py test

[testenv:py{39,310,311,312,313}-lazyfuzzy]
changedir = examples/lazyfuzzy
commands_pre =
{[baseenv]commands}
commands =
sh -c 'cd {toxinidir} && {envpython} -m pip install -e .[all]'
{envpython} manage.py test

[testenv:py{39,310,311,312,313}-pydantic]
changedir = examples/pydantic
commands_pre =
{[baseenv]commands}
commands =
sh -c 'cd {toxinidir} && {envpython} -m pip install -e .[all]'
{envpython} -m pip install -r requirements.in
{envpython} manage.py test

[testenv:py{39,310,311,312,313}-sqlalchemy]
changedir = examples/sqlalchemy
commands_pre =
{[baseenv]commands}
commands =
sh -c 'cd {toxinidir} && {envpython} -m pip install -e .[all]'
{envpython} -m pip install -r requirements.in
{envpython} manage.py test

[testenv:py{39,310,311,312,313}-sqlmodel]
changedir = examples/sqlmodel
commands_pre =
{[baseenv]commands}
commands =
sh -c 'cd {toxinidir} && {envpython} -m pip install -e .[all]'
{envpython} -m pip install -r requirements.in
{envpython} manage.py test

[testenv:py{39,310,311,312,313}-tortoise]
changedir = examples/tortoise
commands_pre =
{[baseenv]commands}
commands =
sh -c 'cd {toxinidir} && {envpython} -m pip install -e .[all]'
{envpython} -m pip install -r requirements.in
{envpython} manage.py test

0 comments on commit d920625

Please sign in to comment.