-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
57 lines (50 loc) · 1.04 KB
/
tox.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
57
[tox]
# use tox-conda if you want to use the locally installed conda environments
# requires = tox-conda
envlist = format, lint, types, py310, py311, py312
isolated_build = True
[testenv]
description = "Runs test suite"
download = true
deps =
pytest
commands = pytest {posargs}
[testenv:py312]
description = "Runs test suite"
download = true
deps =
pytest
pytest-cov
commands = pytest --cov=cobramod --cov-report xml {posargs}
[testenv:ui]
description = "Runs ui tests"
download = true
commands =
jupyter lab --config ./ui-tests/jupyter_server_test_config.py &
npx wait-on http-get://localhost:8888/lab -t 360000
npx playwright test
jupyter lab stop 8888
[testenv:format]
skip_install = True
deps =
ruff
commands =
ruff format --check src/cobramod
ruff format --check tests
[testenv:lint]
skip_install = True
deps =
ruff
commands =
ruff check src/cobramod
ruff check tests
[testenv:types]
deps =
mypy
commands =
mypy src/cobramod/ tests/
[gh]
python =
3.12 = py312
3.11 = py311
3.10 = py310