-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
42 lines (35 loc) · 926 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
[tox]
envlist =
clean
py38
py39
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase
commands_pre =
commands_post =
[testenv]
# install pytest in the virtualenv where commands will be executed
deps =
pytest
pytest-cov
python-dateutil
mariadb
whitelist_externals =
docker
sleep
commands =
# NOTE: option -rP will show captured output for passed tests as well
#pytest test/
python -m pytest -v --cov-append --cov=htcollector --cov-report=xml --cov-report=html:coverage test/
commands_pre =
- docker rm --force test-mariadb
docker run --detach --name test-mariadb --env MARIADB_DATABASE=shellyht --env MARIADB_USER=test-user --env MARIADB_PASSWORD=test_secret --env MARIADB_ROOT_PASSWORD=my-secret-pw -p 3306:3306 mariadb:latest
sleep 15
commands_post =
docker rm --force test-mariadb
[gh-actions]
python =
3.8: py38
3.9: py39