bijoe/tox.ini

67 lines
1.6 KiB
INI

# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/bijoe/{env:BRANCH_NAME:}
envlist =
py3-django32,
code-style
[testenv:code-style]
skip_install = true
deps =
pre-commit
commands =
pre-commit run --all-files --show-diff-on-failure
[testenv]
usedevelop = true
setenv =
NUMPROCESSES={env:NUMPROCESSES:1}
DJANGO_SETTINGS_MODULE=bijoe.settings
BIJOE_SETTINGS_FILE=tests/settings.py
SETUPTOOLS_USE_DISTUTILS=stdlib
coverage: COVERAGE=--junit-xml=test_results.xml --cov=bijoe --cov-report xml --cov-report html --cov-config .coveragerc
deps =
django32: django>=3.2,<3.3
coverage
pytest
pytest-cov
pytest-django
pytest-freezegun
pytest-xdist
WebTest
django32: django-webtest
mock
pyquery
tabulate
sentry_sdk<0.12.3
django32: psycopg2
django32: psycopg2-binary
django32: Django-Select2>7.7,<7.8
django32: djangorestframework>=3.7
django32: https://git.entrouvert.org/entrouvert/hobo/archive/main.tar.gz
commands =
python setup.py compile_translations
py3-django32: py.test {posargs: --junitxml=test_{envname}_results.xml --cov-report xml --cov-report html --cov=bijoe --cov-config=tox.ini --numprocesses {env:NUMPROCESSES:1} tests/}
[pytest]
filterwarnings =
once:.*
[coverage:run]
source =
authentic2
authentic2_auth_fc
authentic2_auth_oidc
authentic2_auth_saml
authentic2_idp_cas
authentic2_idp_oidc
django_rbac
[coverage:html]
show_contexts = True