also run tests with cu2qu compiled with cython
This commit is contained in:
parent
560c634ed8
commit
111a1c199a
@ -26,6 +26,8 @@ matrix:
|
|||||||
env: TOXENV=py37-cov
|
env: TOXENV=py37-cov
|
||||||
- python: 3.8
|
- python: 3.8
|
||||||
env: TOXENV=py38-cov
|
env: TOXENV=py38-cov
|
||||||
|
- python: 3.8
|
||||||
|
env: TOXENV=py38-cy
|
||||||
- python: pypy3
|
- python: pypy3
|
||||||
# disable coverage.py on pypy because of performance problems
|
# disable coverage.py on pypy because of performance problems
|
||||||
env: TOXENV=pypy3
|
env: TOXENV=pypy3
|
||||||
|
6
tox.ini
6
tox.ini
@ -3,9 +3,11 @@ minversion = 3.0
|
|||||||
envlist = py3{6,7,8}-cov, htmlcov
|
envlist = py3{6,7,8}-cov, htmlcov
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
|
setenv =
|
||||||
|
cy: FONTTOOLS_WITH_CYTHON=1
|
||||||
deps =
|
deps =
|
||||||
cov: coverage>=4.3
|
cov: coverage>=4.3
|
||||||
pytest==5.1.1
|
pytest
|
||||||
pytest-randomly
|
pytest-randomly
|
||||||
-rrequirements.txt
|
-rrequirements.txt
|
||||||
extras =
|
extras =
|
||||||
@ -15,6 +17,8 @@ extras =
|
|||||||
interpolatable
|
interpolatable
|
||||||
!nolxml: lxml
|
!nolxml: lxml
|
||||||
commands =
|
commands =
|
||||||
|
cy: python -c "from fontTools.cu2qu.cu2qu import COMPILED; assert COMPILED"
|
||||||
|
!cy: python -c "from fontTools.cu2qu.cu2qu import COMPILED; assert not COMPILED"
|
||||||
# test with or without coverage, passing extra positonal args to pytest
|
# test with or without coverage, passing extra positonal args to pytest
|
||||||
cov: coverage run --parallel-mode -m pytest {posargs:Tests fontTools}
|
cov: coverage run --parallel-mode -m pytest {posargs:Tests fontTools}
|
||||||
!cov: pytest {posargs:Tests fontTools}
|
!cov: pytest {posargs:Tests fontTools}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user