diff options
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 20 |
1 files changed, 9 insertions, 11 deletions
@@ -1,6 +1,6 @@ [tox] minversion = 3.0 -envlist = mypy, py3{7,8,9}-cov, htmlcov +envlist = lint, py3{8,9,10,11,12}-cov, htmlcov skip_missing_interpreters=true [testenv] @@ -11,18 +11,15 @@ setenv = # relatively recent 'manylinux2014' platform tag. # https://github.com/tox-dev/tox/issues/791#issuecomment-518713438 download = true +# building lxml from source takes too long on CI, force it to download pre-compiled +# wheel or fail if none is found with --only-binary=lxml +install_command = python -m pip install --only-binary=lxml {opts} {packages} deps = cov: coverage>=4.3 - pytest + pytest>=7.0.0 pytest-randomly - -rrequirements.txt - !nolxml: lxml==4.6.4 -extras = - ufo - woff - unicode - interpolatable - !nolxml: lxml + # add -noextra to tox -e to skip installing extras and only test the core fonttools + !noextra: -rrequirements.txt commands = cy: python -c "from fontTools.cu2qu.cu2qu import COMPILED; assert COMPILED" !cy: python -c "from fontTools.cu2qu.cu2qu import COMPILED; assert not COMPILED" @@ -38,11 +35,12 @@ commands = coverage combine coverage html -[testenv:mypy] +[testenv:lint] deps = -r dev-requirements.txt skip_install = true commands = + black --check --diff . mypy [testenv:codecov] |