-
Notifications
You must be signed in to change notification settings - Fork 33
/
tox.ini
110 lines (110 loc) · 2.67 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
[tox]
envlist =
py{38,39,310,311,312}
py310-pg{12,13,14,15}
vector
psycopg28
[testenv]
deps =
pytest
psycopg2~=2.9
commands = pytest tests/
docker = pg16
setenv =
POSTGRES_DB=pgcopy_tox_test
POSTGRES_HOST=localhost
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
[testenv:python2.7]
[testenv:py310-pg12]
docker = pg12
[testenv:py310-pg13]
docker = pg13
[testenv:py310-pg14]
docker = pg14
[testenv:py310-pg15]
docker = pg15
[testenv:vector]
base_python = python3.10
docker = pgvector
commands = pytest tests/test_contrib.py -vk Vector
[testenv:coverage]
deps =
pytest
pytest-cov
psycopg2~=2.9
commands =
pytest --cov-report=term --cov-report=lcov:coverage.lcov --cov=pgcopy/ tests/
docker = pgvector
[testenv:psycopg28]
base_python = python3.10
deps =
pytest
psycopg2==2.8.*
docker = pg14
[docker:pg12]
image = postgres:12
environment=
POSTGRES_HOST_AUTH_METHOD=trust
healthcheck_cmd = psql --user=postgres \
--host=127.0.0.1 --quiet --no-align --tuples-only \
-1 --command="SELECT 1"
healthcheck_timeout = 1
healthcheck_retries = 30
healthcheck_interval = 1
healthcheck_start_period = 1
[docker:pg13]
image = postgres:13
environment=
POSTGRES_HOST_AUTH_METHOD=trust
healthcheck_cmd = psql --user=postgres \
--host=127.0.0.1 --quiet --no-align --tuples-only \
-1 --command="SELECT 1"
healthcheck_timeout = 1
healthcheck_retries = 30
healthcheck_interval = 1
healthcheck_start_period = 1
[docker:pg14]
image = postgres:14
environment=
POSTGRES_HOST_AUTH_METHOD=trust
healthcheck_cmd = psql --user=postgres \
--host=127.0.0.1 --quiet --no-align --tuples-only \
-1 --command="SELECT 1"
healthcheck_timeout = 1
healthcheck_retries = 30
healthcheck_interval = 1
healthcheck_start_period = 1
[docker:pg15]
image = postgres:15
environment=
POSTGRES_HOST_AUTH_METHOD=trust
healthcheck_cmd = psql --user=postgres \
--host=127.0.0.1 --quiet --no-align --tuples-only \
-1 --command="SELECT 1"
healthcheck_timeout = 1
healthcheck_retries = 30
healthcheck_interval = 1
healthcheck_start_period = 1
[docker:pg16]
image = postgres:16
environment=
POSTGRES_HOST_AUTH_METHOD=trust
healthcheck_cmd = psql --user=postgres \
--host=127.0.0.1 --quiet --no-align --tuples-only \
-1 --command="SELECT 1"
healthcheck_timeout = 1
healthcheck_retries = 30
healthcheck_interval = 1
healthcheck_start_period = 1
[docker:pgvector]
image = pgvector/pgvector:pg16
environment=
POSTGRES_HOST_AUTH_METHOD=trust
healthcheck_cmd = psql --user=postgres \
--host=127.0.0.1 --quiet --no-align --tuples-only \
-1 --command="SELECT 1"
healthcheck_timeout = 1
healthcheck_retries = 30
healthcheck_interval = 1
healthcheck_start_period = 1