Repository navigation
Expand file tree
/
Copy pathtox.ini
More file actions
74 lines (63 loc) · 1.59 KB
/
Copy pathtox.ini
File metadata and controls
74 lines (63 loc) · 1.59 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
[tox]
envlist = py310, py311, py312, py313, py314
skip_missing_interpreters = true
[testenv]
deps =
cerulean # not actually used for these non-cluster tests
mypy
pytest
coverage
ruff
types-parsimonious
types-psutil
passenv =
MUSCLE_TEST_PYTHON_ONLY
MUSCLE_DISABLE_FORTRAN
MUSCLE_ENABLE_CPP_MPI
MUSCLE_ENABLE_FORTRAN_MPI
commands =
mypy
coverage run -m pytest {posargs}
coverage report -m
coverage xml
ruff check
ruff format --check
[testenv:cluster]
deps =
cerulean
docker
pytest
coverage
types-parsimonious
types-psutil
setenv =
MUSCLE_TEST_CLUSTER=1
commands =
coverage run -m pytest -k 'test_cluster' --log-disable=paramiko.transport {posargs}
# coverage run -m pytest --log-cli-level=DEBUG --log-disable=paramiko.transport --log-disable=paramiko.transport.sftp --log-disable=cerulean.copy_files --log-disable=cerulean.local_terminal --log-disable=cerulean.ssh_terminal --log-disable=cerulean.sftp_file_system --log-disable=cerulean.slurm_scheduler --log-disable=cerulean.direct_gnu_scheduler -s -k 'test_cluster' {posargs}
coverage report -m
coverage xml
[gh-actions]
python =
3.10: py310
3.11: py311
3.12: py312
3.13: py313
3.14: py314
[pycodestyle]
max-doc-length = 88
[testenv:docs]
description = Build documentation using Sphinx
basepython = python3
deps =
breathe
pytest
recommonmark
six
sphinx<9
sphinx-fortran
sphinx_rtd_theme
sphinx-click
sphinx-tabs
sphinx-toolbox
commands = sphinx-build docs/source docs/build -bhtml