mirror of
https://github.com/jazzband/django-celery-monitor.git
synced 2026-03-16 22:00:24 +00:00
* Add initial GitHub test workflow. * Remove unneeded cache key. * Update tox config. * Stop testing Django 1.8 and 1.9. * Use pytest.mark.django_db differently * Reordering decorator? * Remove version restrictions. * Fix flake8 bugs. * Fix sphinx test. * More Sphinx fixes.
40 lines
1.3 KiB
INI
40 lines
1.3 KiB
INI
[tox]
|
|
envlist =
|
|
tests-py{py,27,35}-dj111
|
|
tests-py36-dj111
|
|
apicheck
|
|
builddocs
|
|
flake8
|
|
flakeplus
|
|
manifest
|
|
pydocstyle
|
|
readme
|
|
|
|
[gh-actions]
|
|
python =
|
|
2.7: py27, flake8, flakeplus, pydocstyle
|
|
3.5: py35
|
|
3.6: py36, apicheck, builddocs, linkcheck
|
|
|
|
[testenv]
|
|
sitepackages = False
|
|
deps=
|
|
-r{toxinidir}/requirements/default.txt
|
|
-r{toxinidir}/requirements/test.txt
|
|
-r{toxinidir}/requirements/test-ci.txt
|
|
|
|
dj111: django>=1.11,<2
|
|
|
|
apicheck,builddocs,linkcheck: -r{toxinidir}/requirements/docs.txt
|
|
flake8,flakeplus,manifest,pydocstyle,readme: -r{toxinidir}/requirements/pkgutils.txt
|
|
|
|
commands =
|
|
tests: pytest -xv --cov=django_celery_monitor --cov-report=term --cov-report=xml --no-cov-on-fail []
|
|
apicheck: sphinx-build -W -b apicheck -d {envtmpdir}/doctrees docs docs/_build/apicheck
|
|
builddocs: sphinx-build -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html
|
|
flake8: flake8 {toxinidir}/django_celery_monitor {toxinidir}/tests
|
|
flakeplus: flakeplus --2.7 {toxinidir}/django_celery_monitor {toxinidir}/tests
|
|
linkcheck: sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees docs docs/_build/linkcheck
|
|
manifest: check-manifest -v
|
|
pydocstyle: pydocstyle {toxinidir}/django_celery_monitor
|
|
readme: python setup.py check -r -s
|