add test dependencies & initialise required cache
{% set tag_version = "0.11.0-rc3" %}
# waiting for https://github.com/conda-forge/conda-forge-pinning-feedstock/pull/1890
{% set pytorch_maj_min = "1.10" %}
+{% set spacy_model = "en_core_web_sm" %}
package:
name: torchtext
@@ -52,6 +53,9 @@ requirements:
test:
requires:
- pytest
+ - expecttest
+ - parameterized
+ - spacy-model-{{ spacy_model }}
source_files:
- test/
imports:
@@ -61,6 +65,9 @@ test:
- torchtext.nn
- torchtext.vocab
commands:
+ # set up cache status file
+ - python -c "from test.common.cache_utils import generate_data_cache; generate_data_cache()"
+ # then run test suite
- pytest test/ -v
about:
