[tox] envlist = py3 [testenv:py3] allowlist_externals = docker deps = -rrequirements.txt passenv = CIPLATFORM setenv = COLUMNS=120 PY_COLORS=1 commands = # Build the Docker image for testing depending on the architecture, fall back to 'local' if not set # This allows us to run the tests on the host architecture if not on CI docker buildx build --load --platform={env:CIPLATFORM:local} --progress plain -f ../src/Dockerfile -t pihole:CI_container ../src/ # run the tests # # Not using > 1 cores as it causes random issues with the emulated architectures pytest {posargs:-vv} ./tests/