-
Notifications
You must be signed in to change notification settings - Fork 101
/
tox.ini
86 lines (69 loc) · 2.08 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[tox]
envlist = py3
[testenv]
deps =
pytest-cov
coverage < 6
extras =
test
commands =
python -m julia.find_libpython --list-all --verbose
# Print libpython candidates found by `find_libpython`. It may be
# useful for debugging.
python -m julia.runtests -- \
--log-file {envlogdir}/pytest.log \
{posargs}
commands_post =
# Strip off ".tox/..." from the coverage
# (see also [[coverage:paths]]):
-coverage combine .coverage
-coverage xml
-coverage report
setenv =
PYJULIA_TEST_PYTHON_JL_IS_INSTALLED = yes
passenv =
# Allow a workaround for "error initializing LibGit2 module":
# https://github.com/JuliaLang/julia/issues/18693
# https://github.com/JuliaDiffEq/diffeqpy/pull/13/commits/850441ee63962a2417de2bce6f6223052ee9cceb
SSL_CERT_FILE
# See: julia/with_rebuilt.py
PYJULIA_TEST_REBUILD
PYJULIA_TEST_RUNTIME
JULIA_DEBUG
# See: test/test_compatible_exe.py
PYJULIA_TEST_INCOMPATIBLE_PYTHONS
# See: https://coveralls-python.readthedocs.io/en/latest/usage/tox.html#travisci
TRAVIS
TRAVIS_*
# https://www.appveyor.com/docs/environment-variables/
APPVEYOR
# https://docs.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables#default-environment-variables
GITHUB_ACTIONS
CI
[pytest]
log_file_level = DEBUG
# Essential flags and configuration must be added to
# src/julia/runtests.py
markers =
pyjulia__using_default_setup: mark tests to be skipped with non-default setup
# https://docs.pytest.org/en/latest/mark.html#registering-marks
[coverage:paths]
source =
src/julia
.tox/*/lib/python*/site-packages/julia
# https://coverage.readthedocs.io/en/coverage-4.5.3/config.html#paths
[testenv:doc]
deps =
-r{toxinidir}/docs/requirements.txt
commands =
sphinx-build -b "html" -d build/doctrees {posargs} source "build/html"
commands_post =
changedir = {toxinidir}/docs
[testenv:style]
deps =
isort == 4.3.17
black == 22.3.0
commands =
isort --recursive --check-only .
black . {posargs:--check --diff}
commands_post =