-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
86 lines (78 loc) · 1.85 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 = py{310,311}-{api,core}-docker
skipsdist = true
[testenv]
commands_pre =
poetry install --without ci -v
python -m textblob.download_corpora
commands =
api: pytest {posargs:tests/api}
core: pytest {posargs:tests/core}
passenv =
SIMPLIFIED_*
PALACE_*
CI
setenv =
{api,core}: COVERAGE_FILE = .coverage.{envname}
docker: SIMPLIFIED_TEST_DATABASE=postgresql://simplified_test:test@localhost:9005/simplified_circulation_test
docker: PALACE_TEST_SEARCH_URL=http://localhost:9007
docker: ADMIN_EKIRJASTO_AUTHENTICATION_URL=http://localhost
core-docker: PALACE_TEST_MINIO_ENDPOINT_URL=http://localhost:9004
core-docker: PALACE_TEST_MINIO_USER=palace
core-docker: PALACE_TEST_MINIO_PASSWORD=12345678901234567890
docker =
docker: os-circ
docker: db-circ
core-docker: minio-circ
allowlist_externals =
docker: docker
python
poetry
pytest
[testenv:migration-docker]
commands =
pytest {posargs:tests/migration}
docker =
docker: db-circ
[testenv:report]
skip_install = true
commands =
coverage combine
coverage html
allowlist_externals =
poetry
coverage
[docker:db-circ]
image = postgres:12
environment =
POSTGRES_USER=simplified_test
POSTGRES_PASSWORD=test
POSTGRES_DB=simplified_circulation_test
ports =
9005:5432/tcp
healthcheck_cmd = pg_isready
healthcheck_interval = 5
healthcheck_retries = 10
[docker:os-circ]
dockerfile = {toxinidir}/docker/Dockerfile.ci
dockerfile_target = opensearch
environment =
discovery.type=single-node
DISABLE_SECURITY_PLUGIN=true
ports =
9007:9200/tcp
[docker:minio-circ]
image = bitnami/minio:2022.3.3
environment =
MINIO_ROOT_USER=palace
MINIO_ROOT_PASSWORD=12345678901234567890
ports =
9004:9000/tcp
[gh-actions]
python =
3.10: py310
3.11: py311
[gh-actions:env]
MODULE =
Core: core
Api: api