This repository was archived by the owner on Feb 26, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtox.ini
More file actions
57 lines (51 loc) · 1.33 KB
/
tox.ini
File metadata and controls
57 lines (51 loc) · 1.33 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
[base]
name = astrovascpy
files = {[base]name} docs/source/conf.py setup.py
[tox]
envlist =
check-packaging
lint
docs
py{311}
minversion = 3.18
[testenv]
extras = test
pass_env = *
setenv =
COVERAGE_FILE = {env:COVERAGE_FILE:.coverage-{envname}}
PIP_INDEX_URL = {env:PIP_INDEX_URL:https://pypi.python.org/simple}
BACKEND_SOLVER_BFS = petsc
allowlist_externals = mpirun
commands = coverage run --branch --source={[base]name} \
-m pytest \
--basetemp={envtmpdir} \
--verbose \
--junit-xml=reports/pytest-{envname}.xml \
{posargs}
mpirun -n 4 coverage run --branch --parallel-mode --source={[base]name} \
-m pytest --with-mpi {toxinidir}/tests/test_mpi.py
coverage combine --append
coverage report --fail-under=50
coverage html --directory="reports"
[testenv:check-packaging]
skip_install = true
deps =
build
twine
commands =
python -m build -o {envtmpdir}/dist
twine check {envtmpdir}/dist/*
[testenv:lint]
skip_install = true
allowlist_externals = bash
deps =
codespell
pre-commit
commands =
codespell --config .codespellrc -i 3 -x .codespellignorelines -w {[base]files} README.md CHANGELOG.md docs/source
pre-commit run --all-files --show-diff-on-failure
[testenv:docs]
extras =
docs
viz
commands = sphinx-build -W --keep-going docs/source docs/build/html