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 c06f214 commit dad4a50
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 41 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ are used for versioning (schema follows below):

- Add benchmarks section to the main README.
- Improve docs. Add a dedicated section on files creation.
- Minor clean-up.
- Test against Django 5.1.
- Clean-up.

Expand Down
106 changes: 66 additions & 40 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,63 +1,89 @@
[tox]
envlist = py39,py310,py311,py312,py313
envlist =
py{39,310,311,312,313}
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 =
source $(VENV)
pytest -vrx --dagnose
python manage.py test
{envpython} -m pytest -vrx

[testenv:customization-test]
[testenv:py{39,310,311,312,313}-customization]
changedir = examples/customization
commands_pre =
{[baseenv]commands}
commands =
cd examples/customization/
source $(VENV)
python manage.py test
{envpython} manage.py test

[testenv:dataclasses-test]
[testenv:py{39,310,311,312,313}-dataclasses]
changedir = examples/dataclasses
commands_pre =
{[baseenv]commands}
commands =
cd examples/dataclasses/
source $(VENV)
python manage.py test
{envpython} manage.py test

[testenv:django-test]
[testenv:py{39,310,311,312,313}-django]
changedir = examples/django
commands_pre =
{[baseenv]commands}
commands =
cd examples/django/
source $(VENV)
./manage.py test
{envpython} -m pip install -r requirements.in
{envpython} manage.py test

[testenv:hypothesis-test]
[testenv:py{39,310,311,312,313}-hypothesis]
changedir = examples/hypothesis
commands_pre =
{[baseenv]commands}
commands =
cd examples/hypothesis/
source $(VENV)
python manage.py test
{envpython} -m pip install -r requirements.in
{envpython} manage.py test

[testenv:lazyfuzzy-test]
[testenv:py{39,310,311,312,313}-lazyfuzzy]
changedir = examples/lazyfuzzy
commands_pre =
{[baseenv]commands}
commands =
cd examples/lazyfuzzy/
source $(VENV)
python manage.py test
{envpython} manage.py test

[testenv:pydantic-test]
[testenv:py{39,310,311,312,313}-pydantic]
changedir = examples/pydantic
commands_pre =
{[baseenv]commands}
commands =
cd examples/pydantic/
source $(VENV)
python manage.py test
{envpython} -m pip install -r requirements.in
{envpython} manage.py test

[testenv:sqlalchemy-test]
[testenv:py{39,310,311,312,313}-sqlalchemy]
changedir = examples/sqlalchemy
commands_pre =
{[baseenv]commands}
commands =
cd examples/sqlalchemy/
source $(VENV)
python manage.py test
{envpython} -m pip install -r requirements.in
{envpython} manage.py test

[testenv:sqlmodel-test]
[testenv:py{39,310,311,312,313}-sqlmodel]
changedir = examples/sqlmodel
commands_pre =
{[baseenv]commands}
commands =
cd examples/sqlmodel/
source $(VENV)
python manage.py test
{envpython} -m pip install -r requirements.in
{envpython} manage.py test

[testenv:tortoise-test]
[testenv:py{39,310,311,312,313}-tortoise]
changedir = examples/tortoise
commands_pre =
{[baseenv]commands}
commands =
cd examples/tortoise/
source $(VENV)
python manage.py test
{envpython} -m pip install -r requirements.in
{envpython} manage.py test

0 comments on commit dad4a50

Please sign in to comment.