-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathtox.ini
More file actions
57 lines (52 loc) · 1.31 KB
/
tox.ini
File metadata and controls
57 lines (52 loc) · 1.31 KB
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
[tox]
envlist = py{310}-docker
skipsdist = true
[testenv]
deps = -r requirements-dev.txt
commands_pre =
python -m textblob.download_corpora
commands =
coverage erase
coverage run -m pytest tests core/tests --disable-warnings
commands_post =
coverage xml --omit="*test*"
passenv = SIMPLIFIED_*
setenv =
docker: SIMPLIFIED_TEST_DATABASE=postgresql://simplified_test:test@localhost:9005/simplified_circulation_test
docker: SIMPLIFIED_TEST_ELASTICSEARCH=http://localhost:9006
docker: SIMPLIFIED_TEST_MINIO_ENDPOINT_URL=http://localhost:9007
docker: SIMPLIFIED_TEST_MINIO_USER=simplified
docker: SIMPLIFIED_TEST_MINIO_PASSWORD=12345678901234567890
docker =
docker: es
docker: db
docker: minio
allowlist_externals =
docker: docker
python
coverage
[docker:db]
image = postgres:12
environment =
POSTGRES_USER=simplified_test
POSTGRES_PASSWORD=test
POSTGRES_DB=simplified_circulation_test
ports =
9005:5432/tcp
[docker:es]
image = bitnami/elasticsearch:6.7.2
environment =
discovery.type=single-node
ELASTICSEARCH_PLUGINS=analysis-icu
ports =
9006:9200/tcp
[docker:minio]
image = bitnami/minio:latest
environment =
MINIO_ROOT_USER=simplified
MINIO_ROOT_PASSWORD=12345678901234567890
ports =
9007:9000/tcp
[gh-actions]
python =
3.10: py310