-
Notifications
You must be signed in to change notification settings - Fork 10
/
tox.ini
62 lines (54 loc) · 1.54 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
59
60
61
62
[tox]
envlist =
check-{style,build}
py{39,310,311,312}-test{,-slow}{,-stable,-devdeps}
requires =
setuptools >= 30.3.0
pip >= 19.3.1
[testenv]
# Pass through the following environment variables which are needed for the CI
passenv = HOME,CI
setenv =
devdeps: PIP_EXTRA_INDEX_URL = https://pypi.anaconda.org/astropy/simple https://pypi.anaconda.org/scientific-python-nightly-wheels/simple https://pypi.anaconda.org/liberfa/simple
# tox environments are constructed with so-called 'factors' (or terms)
# separated by hyphens, e.g. test-devdeps-cov. Lines below starting with factor:
# will only take effect if that factor is included in the environment name. To
# see a list of example environments that can be run, along with a description,
# run:
#
# tox -l -v
#
description =
run tests
slow: with slow flag
stable: with env set to stable
devdeps: with the latest developer version of key dependencies
extras =
test
all
deps =
devdeps: numpy>=0.0.dev0
devdeps: pyerfa>=0.0.dev0
devdeps: astropy>=0.0.dev0
commands =
pip freeze
pytest tests \
slow: --slow --basetemp=tests_output --junitxml results.xml \
stable: --env stable \
{posargs}
[testenv:check-style]
description = check code style with ruff
skip_install = true
deps =
ruff
commands =
ruff check . {posargs}
[testenv:check-build]
description = check build sdist/wheel and a strict twine check for metadata
skip_install = true
deps =
build
twine>=3.3
commands =
python -m build .
twine check --strict dist/*