-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
executable file
·58 lines (48 loc) · 1.45 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
58
# Tox (http://tox.testrun.org/) is a tool for running tests in multiple virtualenvs.
# This configuration file will run the test suite on all supported Python versions.
# To use it, "pip install tox" and then run "tox" from this directory.
[tox]
envlist =
# Basic configurations: Run the tests for each python version.
py{39, 310, 311}
# Build and test the docs with sphinx.
docs
# Run the linters.
lint
# Pre distribution checks for the package
twine
requires =
tox-conda
setuptools
skip_missing_interpreters = False
[testenv]
conda_env = {toxinidir}/environment.yml
deps =
pytest==7.2.1
pytest-cov==4.0.0
pytest-xdist==3.2.0
pytest-asyncio==0.20.3
# {posargs} can be passed in by additional arguments specified when invoking tox.
# Can be used to specify which tests to run, e.g.: tox -- -s
commands =
pytest --cov-config .coveragerc --cov test --cov-report term-missing {posargs}
{env:IGNORE_COVERAGE:} coverage report --rcfile .coveragerc
{env:IGNORE_COVERAGE:} coverage html --rcfile .coveragerc
[testenv:twine]
deps =
twine>=1.12.0
commands =
python setup.py sdist
twine check dist/*.tar.gz
[testenv:lint]
skip_install = true
conda_env =
deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure
[testenv:docs]
changedir = doc
deps =
sphinx>=6.2.1
sphinx-rtd-theme>=1.2.2
sphinx-autoapi>=2.1.1
commands = sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html