-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtox.ini
21 lines (19 loc) · 1.03 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py39, py38, py37, py36
[testenv]
allowlist_externals = bash
skip_install = False
setenv =
PIP_INDEX_URL = {env:PIP_INDEX_URL}
commands =
pip install --upgrade pip wheel setuptools
pip install -r requirements/python-dev
bash -c "python3 -m spacy info | grep Pipelines | grep -qv en_core_web_trf && python -m spacy download en_core_web_trf || exit 0"
bash -c "python3 -m spacy info | grep Pipelines | grep -qv en_core_web_sm && python -m spacy download en_core_web_sm || exit 0"
bash -c "python3 -m spacy info | grep Pipelines | grep -qv fr_core_news_lg && python -m spacy download fr_core_news_lg || exit 0"
bash -c "python3 -m spacy info | grep Pipelines | grep -qv de_core_news_sm && python -m spacy download de_core_news_sm || exit 0"
python tests/run.py