https://forge.softwareheritage.org/source/swh-scheduler.git
Revision 56e4a12c22a462fffd6fbb9db0682605b3961d59 authored by Nicolas Dandrimont on 20 November 2019, 18:56:38 UTC, committed by Nicolas Dandrimont on 20 November 2019, 18:56:38 UTC
1 parent c973ec0
Raw File
Tip revision: 56e4a12c22a462fffd6fbb9db0682605b3961d59 authored by Nicolas Dandrimont on 20 November 2019, 18:56:38 UTC
Include all requirements in MANIFEST.in
Tip revision: 56e4a12
tox.ini
[tox]
envlist=flake8,mypy,py3

[testenv:py3]
deps =
  .[testing]
  pytest-cov
  pifpaf
setenv =
  LC_ALL=C.UTF-8
  LC_CTYPE=C.UTF-8
  LANG=C.UTF-8
commands =
  pifpaf run postgresql -- pytest --doctest-modules --hypothesis-profile=fast \
         --cov={envsitepackagesdir}/swh/scheduler \
         {envsitepackagesdir}/swh/scheduler \
         --cov-branch {posargs}

[testenv:py3-slow]
deps =
  .[testing]
  pytest-cov
  pifpaf
commands =
  pifpaf run postgresql -- pytest --doctest-modules --hypothesis-profile=slow \
         --cov={envsitepackagesdir}/swh/scheduler \
         {envsitepackagesdir}/swh/scheduler \
         --cov-branch {posargs}

[testenv:flake8]
skip_install = true
deps =
  flake8
commands =
  {envpython} -m flake8

[testenv:mypy]
skip_install = true
deps =
  .[testing]
  mypy
commands =
  mypy swh
back to top