https://forge.softwareheritage.org/source/swh-scheduler.git
Raw File
Tip revision: 93585727b8e0d2afe8c428bec899a6023ad9161d authored by Antoine R. Dumont (@ardumont) on 15 November 2019, 15:02:12 UTC
swh.scheduler.cli: Add `swh scheduler task-type register` cli
Tip revision: 9358572
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