Include the tests and run them
@@ -12,7 +12,10 @@ source:
build:
number: 0
noarch: python
- script: "{{ PYTHON }} -m pip install . --no-deps --ignore-installed --no-cache-dir -vvv"
+ script:
+ # include the tests in the conda distribution
+ - mv tests mplcursors/.
+ - "{{ PYTHON }} -m pip install . --no-deps --ignore-installed --no-cache-dir -vvv"
requirements:
host:
@@ -24,9 +27,12 @@ requirements:
- matplotlib >2.1
test:
+ requires:
+ - pytest
imports:
- mplcursors
- # Cannot run the pytest suite since it isn't installed with the package.
+ commands:
+ - pytest --pyargs mplcursors
about:
home: https://github.com/anntzer/mplcursors
