Skip to content

Commit

Permalink
tox: Set --basetemp to work around MAX_PATH limitation on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Holzhaus committed Oct 5, 2022
1 parent cef3842 commit 852d532
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions tox.ini
@@ -1,13 +1,22 @@
[tox]
envlist = py37,py38,pypy3,pre-commit
# Platform specification support is available since version 2.0, see:
# https://tox.wiki/en/latest/example/platform.html#basic-multi-platform-example
minversion = 2.0
envlist = {py37,py38,pypy3}-{unix,windows},pre-commit

[testenv]
deps = -rrequirements-dev.txt
passenv = APPDATA HOME LOCALAPPDATA PROGRAMFILES RUSTUP_HOME
platform =
unix: darwin|cygwin|linux\d*|aix\d*|sunos\d*|freebsd\d*
windows: win32
commands =
coverage erase
coverage run -m pytest {posargs:tests}
coverage report
unix: coverage erase
coverage run -m pytest --basetemp="/tmp/pytest-{envname}" {posargs:tests}
coverage report
windows: coverage erase
coverage run -m pytest --basetemp="C:\tmp\pytest-{envname}" {posargs:tests}
coverage report

[testenv:pre-commit]
skip_install = true
Expand Down

0 comments on commit 852d532

Please sign in to comment.