From a98bb8dbeb45641bd18420c42b4c27686aed9f59 Mon Sep 17 00:00:00 2001 From: Hiroshi Miura Date: Wed, 8 Dec 2021 12:38:34 +0900 Subject: [PATCH] Tox: add fil memory profiler Signed-off-by: Hiroshi Miura --- pyproject.toml | 11 +++++++++-- setup.cfg | 1 + 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 00c4b6c..310cb51 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,7 +34,7 @@ ensure_newline_before_comments = true [tool.tox] legacy_tox_ini = """ [tox] -envlist = check, docs, py{36,37,38,39,310}, py39d, mprof +envlist = check, docs, py{36,37,38,39,310}, py39d, mprof, fil [testenv] passenv = @@ -65,7 +65,7 @@ commands = basepython = python3.9d extras = test commands = - python -m pytest -v --no-cov -R : -k "test_install" + python3.9-dbg -m pytest -v --no-cov -R : -k "test_install" deps = pytest pytest-leaks @@ -82,6 +82,13 @@ deps = memory_profiler matplotlib +[testenv:fil] +basepython = python3.8 +commands = + fil-profile run -m aqt install-qt -O /tmp -d /tmp linux desktop 6.2.1 +deps = + filprofiler + [testenv:coveralls] deps = coveralls diff --git a/setup.cfg b/setup.cfg index 7ab6141..1ef0707 100644 --- a/setup.cfg +++ b/setup.cfg @@ -66,6 +66,7 @@ test = pytest-cov pytest-socket pytest-leaks + pympler check = flake8 flake8-black