forked from ThePalaceProject/library-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
50 lines (45 loc) · 1.14 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
[tox]
envlist = py{38,39,310,311}-docker
skipsdist = true
[testenv]
commands_pre =
poetry install --without ci -v
commands =
pytest {posargs:tests}
passenv =
SIMPLIFIED_*
CI
setenv =
docker: SIMPLIFIED_TEST_DATABASE=postgresql://simplified_test:test@localhost:9015/simplified_registry_test
docker: AWS_ACCESS_KEY_ID=TEST
docker: AWS_SECRET_ACCESS_KEY=testpassword
docker: SIMPLIFIED_AWS_S3_ENDPOINT_URL=http://localhost:9004
docker: SIMPLIFIED_AWS_S3_BUCKET_NAME=registry-tox-test
docker =
docker: db-registry
docker: minio-registry
allowlist_externals = poetry
[docker:db-registry]
image = postgis/postgis:12-3.1
environment =
POSTGRES_USER=simplified_test
POSTGRES_PASSWORD=test
POSTGRES_DB=simplified_registry_test
ports = 9015:5432/tcp
healthcheck_cmd = pg_isready
healthcheck_interval = 5
healthcheck_retries = 10
[docker:minio-registry]
image = bitnami/minio:2022.3.3
environment =
MINIO_ACCESS_KEY=TEST
MINIO_SECRET_KEY=testpassword
MINIO_DEFAULT_BUCKETS=registry-tox-test:download
ports =
9004:9000/tcp
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311