2024-07-30 19:49:12 +03:00
|
|
|
[tox]
|
|
|
|
isolated_build = True
|
|
|
|
skipsdist = true
|
|
|
|
envlist =
|
|
|
|
py311
|
|
|
|
py311-base
|
|
|
|
py311-unstructured
|
|
|
|
py311-pdf
|
|
|
|
|
|
|
|
|
|
|
|
[testenv:py311]
|
|
|
|
allowlist_externals =
|
|
|
|
poetry
|
|
|
|
commands_pre =
|
|
|
|
poetry install --no-root --with test
|
|
|
|
commands =
|
2024-08-01 16:54:43 +03:00
|
|
|
poetry run pytest tests/ -m "not base" \
|
2024-07-30 19:49:12 +03:00
|
|
|
--ignore=./tests/processor/epub \
|
|
|
|
--ignore=./tests/processor/docx \
|
|
|
|
--ignore=./tests/processor/odt \
|
2024-09-02 11:20:53 +03:00
|
|
|
--ignore=./tests/processor/pdf \
|
|
|
|
--ignore=tests/processor/community
|
2024-07-30 19:49:12 +03:00
|
|
|
|
|
|
|
[testenv:py311-base]
|
|
|
|
allowlist_externals =
|
|
|
|
poetry
|
|
|
|
commands_pre =
|
|
|
|
poetry install --no-root --with test -E base
|
|
|
|
commands =
|
|
|
|
poetry run pytest tests/ -m base \
|
|
|
|
--ignore=./tests/processor/epub \
|
|
|
|
--ignore=./tests/processor/docx \
|
|
|
|
--ignore=./tests/processor/odt \
|
2024-09-02 11:20:53 +03:00
|
|
|
--ignore=./tests/processor/pdf \
|
|
|
|
--ignore=tests/processor/community
|
2024-07-30 19:49:12 +03:00
|
|
|
|
|
|
|
[testenv:py311-unstructured]
|
|
|
|
allowlist_externals =
|
|
|
|
poetry
|
|
|
|
commands_pre =
|
2024-07-31 22:57:28 +03:00
|
|
|
poetry install --no-root \
|
|
|
|
-E csv \
|
|
|
|
-E md \
|
|
|
|
-E ipynb \
|
|
|
|
-E epub \
|
|
|
|
-E odt \
|
|
|
|
-E docx \
|
|
|
|
-E pptx \
|
|
|
|
-E xlsx \
|
|
|
|
--with test
|
2024-07-30 19:49:12 +03:00
|
|
|
commands =
|
2024-09-02 11:20:53 +03:00
|
|
|
poetry run pytest \
|
|
|
|
tests/processor/epub \
|
2024-07-30 19:49:12 +03:00
|
|
|
tests/processor/docx \
|
2024-09-02 11:20:53 +03:00
|
|
|
tests/processor/docx \
|
|
|
|
tests/processor/odt \
|
|
|
|
tests/processor/community
|
|
|
|
|
2024-07-30 19:49:12 +03:00
|
|
|
|
|
|
|
[testenv:py311-pdf]
|
|
|
|
allowlist_externals =
|
|
|
|
poetry
|
|
|
|
commands_pre =
|
|
|
|
poetry install --no-root -E pdf --with test
|
|
|
|
commands =
|
|
|
|
poetry run pytest tests/processor/pdf
|