tox.ini 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. [tox]
  2. skipsdist = true
  3. isolated_build = true
  4. envlist = clean, lint, linux, windows, macos, report, without-pyodbc
  5. [pytest]
  6. filterwarnings =
  7. ignore::DeprecationWarning
  8. [testenv]
  9. allowlist_externals = pytest
  10. deps =
  11. pipenv==2023.7.23
  12. mypy
  13. [testenv:lint]
  14. platform = linux
  15. allowlist_externals =
  16. isort
  17. black
  18. flake8
  19. deps =
  20. isort
  21. black
  22. flake8
  23. commands =
  24. isort taipy --check
  25. black taipy tests --check
  26. flake8 taipy tests
  27. [testenv:linux]
  28. platform = linux
  29. commands =
  30. pipenv install --dev
  31. pipenv run python tools/frontend/bundle_build.py
  32. pipenv run ipython kernel install --name "python3" --user
  33. pipenv run playwright install chromium --with-deps
  34. pipenv run mypy --config-file mypy.ini taipy
  35. pipenv run pytest -s --cov=taipy --cov-append --cov-report=xml --cov-report term-missing tests
  36. [testenv:windows]
  37. platform = win32
  38. commands =
  39. pipenv install --dev
  40. pipenv run python tools/frontend/bundle_build.py
  41. pipenv run ipython kernel install --name "python3" --user
  42. pipenv run playwright install chromium --with-deps
  43. pipenv run pytest -s tests
  44. [testenv:macos]
  45. platform = darwin
  46. commands =
  47. pipenv install --dev
  48. pipenv run python tools/frontend/bundle_build.py
  49. pipenv run ipython kernel install --name "python3" --user
  50. pipenv run playwright install chromium --with-deps
  51. pipenv run pytest -s tests
  52. [testenv:report]
  53. depends = linux
  54. platform = linux
  55. deps = coverage
  56. skip_install = true
  57. commands =
  58. coverage report
  59. coverage html
  60. [testenv:clean]
  61. platform = linux
  62. deps = coverage
  63. skip_install = true
  64. commands = coverage erase
  65. [testenv:tests]
  66. commands =
  67. pipenv install --dev
  68. pipenv run python tools/frontend/bundle_build.py
  69. pipenv run ipython kernel install --name "python3" --user
  70. pipenv run playwright install chromium --with-deps
  71. pipenv run pip freeze
  72. pipenv run pytest -s tests