ci: fix tox config

seems that after version 4.0 it's necessary to specify environments to run
previosly it was picking them up automatically
This commit is contained in:
karlicoss 2023-01-30 23:37:43 +00:00 committed by Sean Breckenridge
parent 24c87e423b
commit 8d70dd725d

View file

@ -1,15 +1,16 @@
[tox] [tox]
minversion = 3.5 minversion = 3.5
envlist = tests-core,tests-all,demo,mypy-core,mypy-misc
# https://github.com/tox-dev/tox/issues/20#issuecomment-247788333 # https://github.com/tox-dev/tox/issues/20#issuecomment-247788333
# hack to prevent .tox from crapping to the project directory # hack to prevent .tox from crapping to the project directory
toxworkdir={env:TOXWORKDIR_BASE:}{toxinidir}/.tox toxworkdir={env:TOXWORKDIR_BASE:}{toxinidir}/.tox
[testenv] [testenv]
passenv = passenv =
# useful for tests to know they are running under ci # useful for tests to know they are running under ci
CI CI
CI_* CI_*
# respect user's cache dirs to prevent tox from crapping into project dir # respect user's cache dirs to prevent tox from crapping into project dir
MYPY_CACHE_DIR MYPY_CACHE_DIR
PYTHONPYCACHEPREFIX PYTHONPYCACHEPREFIX