mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2025-12-19 18:08:35 +00:00
17 lines
655 B
INI
17 lines
655 B
INI
[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/
|