mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-15 01:21:48 +03:00
d9c1f3add4
# Description - Update CI - Fix DockerFile for quivr-core tests - Tox parallel tests @StanGirard @chloedia - For running quivr-core tests: ```bash cd backend/core ./scripts/run_tests.sh ``` --------- Co-authored-by: aminediro <aminedirhoussi@gmail.com> Co-authored-by: Stan Girard <girard.stanislas@gmail.com>
61 lines
1.4 KiB
INI
61 lines
1.4 KiB
INI
[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 =
|
|
poetry run pytest tests/ -m "not base" \
|
|
--ignore=./tests/processor/epub \
|
|
--ignore=./tests/processor/docx \
|
|
--ignore=./tests/processor/odt \
|
|
--ignore=./tests/processor/pdf
|
|
|
|
[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 \
|
|
--ignore=./tests/processor/pdf
|
|
|
|
[testenv:py311-unstructured]
|
|
allowlist_externals =
|
|
poetry
|
|
commands_pre =
|
|
poetry install --no-root \
|
|
-E csv \
|
|
-E md \
|
|
-E ipynb \
|
|
-E epub \
|
|
-E odt \
|
|
-E docx \
|
|
-E pptx \
|
|
-E xlsx \
|
|
--with test
|
|
commands =
|
|
poetry run pytest tests/processor/epub \
|
|
tests/processor/docx \
|
|
tests/processor/odt
|
|
|
|
[testenv:py311-pdf]
|
|
allowlist_externals =
|
|
poetry
|
|
commands_pre =
|
|
poetry install --no-root -E pdf --with test
|
|
commands =
|
|
poetry run pytest tests/processor/pdf
|