[tox]
skipsdist = true
envlist =
    py39-odfdo{377,3713,380},
    py310-odfdo{377,3713,380},
    py311-odfdo{377,3713,380},
    py312-odfdo{377,3713,380},
    py313-odfdo{377,3713,393,3138},
    lint

[gh-actions]
python =
    3.9: py39
    3.10: py310
    3.11: py311
    3.12: py312
    3.13: py313, lint

[testenv:py{39,310,311,312,313}-odfdo{377,3713,380,3138}]
passenv = PYTHON_VERSION
deps =
    pytest
    odfdo377: odfdo==3.7.7
    odfdo3713: odfdo==3.7.13
    odfdo380: odfdo==3.8.0
    odfdo393: odfdo==3.9.3
    odfdo3138: odfdo==3.13.8
setenv =
  LC_ALL=C.UTF-8
commands =
    pip install .
    pytest

[testenv:lint]
skip_install = true
deps =
    ruff
commands =
    ruff check src tests
