-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
45 lines (42 loc) · 943 Bytes
/
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
[tox]
envlist=py3
skip_missing_interpreters=true
[testenv]
passenv =
ES_HOST
setenv =
NO_PROXY=localhost,postgres,elasticsearch
no_proxy=localhost,postgres,elasticsearch
deps =
.[dev,sync]
-crequirements-sync.txt
commands =
coverage run --source gdcmodels -m pytest -vvs --junit-xml test-reports/results.xml {tty:--color=yes} {posargs}
coverage xml
coverage html
coverage report -m
[testenv:coverage]
passenv = CODACY_PROJECT_TOKEN
deps =
requests
codacy-coverage
commands = python-codacy-coverage -r coverage.xml
[testenv:publish]
changedir =
passenv =
TWINE_*
CI_COMMIT_*
skip_install=true
deps =
setuptools_scm==8.0.4
setuptools_git_versioning<2
build
twine
install_command =
python -m pip install {opts} {packages}
commands =
python -m setuptools_git_versioning
python -m build
python -m twine check dist/*
python -m twine upload dist/*
commands_post=