diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f16c13aadc7412aaeeb6594be7e2d36c8388b551..a8433061ec7d4ef8dd146584b50b4a25e9998d7d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -36,8 +36,6 @@ dist: - python setup.py bdist_wheel # an alternative approach is to install and run: - pip install dist/* - # remove build directory in order to prevent ImportPathMismatchError - - rm -rf build artifacts: paths: - dist/*.whl diff --git a/setup.cfg b/setup.cfg index 87d77878ac191f131b243e2538be6d2f9120351d..308d55d7c4f730793ffb615b7651ba64393dc277 100644 --- a/setup.cfg +++ b/setup.cfg @@ -125,21 +125,26 @@ build-dir = docs/_build source-dir = docs [tool:pytest] -addopts = --doctest-modules +addopts = + --doctest-modules junit_family = xunit2 [tox:tox] minversion = 3.7 skip_missing_interpreters = true envlist = - py{38,39} + py{35,36,37,38,39,310} recreate = true usedevelop = true [gh-actions] python = + 3.5: py35 + 3.6: py36 + 3.7: py37 3.8: py38 3.9: py39 + 3.10: py310 [testenv] description = run test suite under {basepython} @@ -152,7 +157,8 @@ commands_pre = rm -rf **/__pycache__ rm -rf **/*.pyc commands = - pytest \ + pytest {envsitepackagesdir}/tfields \ # prevent ImportPathMismatchError https://tox.wiki/en/latest/example/pytest.html + --basetemp="{envtmpdir}" {posargs} --cov={[metadata]name} \ --ignore=docs \ --junitxml=report/junit.xml