-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathtox_external.ini
executable file
·56 lines (48 loc) · 1.26 KB
/
tox_external.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[tox]
isolated_build = True
envlist = core, memory_core, py310
[commands]
commands_pre =
pdm install --dev --no-editable --no-self
coverage erase
commands = coverage run -m pytest tests/core tests/gui
commands_post =
coverage report -m
coverage html
coverage xml
[commands-core]
commands = coverage run -m --source=source/rafcon/core pytest tests/core
[testenv]
# pycairo needs to be installed first to be able to install PyGObject via pip
deps = pdm
passenv =
DISPLAY
XAUTHORITY
HOME
setenv =
PDM_IGNORE_SAVED_PYTHON="1"
PYTHONPATH={toxinidir}/source
[testenv:core]
basepython = python3.10
commands_pre = {[commands]commands_pre}
commands = {[commands-core]commands}
commands_post =
coverage report -m
coverage html -d htmlcov_core
coverage xml -o coverage_core.xml
[testenv:memory_core]
# Change value of Memory_Test_Iterations to specify number of iterations for the memory test
basepython = python3.10
setenv =
PDM_IGNORE_SAVED_PYTHON="1"
Memory_Test_Iterations=25
deps = pdm
commands =
pdm install --dev --no-editable
pytest tests/memory
[testenv:py310]
basepython = python3.10
deps = pdm
commands_pre = {[commands]commands_pre}
commands = {[commands]commands}
commands_post = {[commands]commands_post}