-
Notifications
You must be signed in to change notification settings - Fork 723
Expand file tree
/
Copy pathtox.ini
More file actions
48 lines (46 loc) · 1.67 KB
/
tox.ini
File metadata and controls
48 lines (46 loc) · 1.67 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
[tox]
envlist = py{310,311,312,313,314}
isolated_build = True
[testenv]
runner = uv-venv-lock-runner
passenv =
AWS_PROFILE
AWS_DEFAULT_REGION
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
AWS_SESSION_TOKEN
setenv =
COV_FAIL_UNDER = 87.00
allowlist_externals =
pytest
uv
commands_pre =
uv sync --frozen --verbose --extra deltalake --extra gremlin --extra mysql --extra opencypher --extra opensearch --extra oracle --extra postgres --extra redshift --extra sparql --extra sqlserver --extra geopandas --extra pyiceberg
commands =
uv run pytest -n {posargs} -s -v --timeout=600 --reruns=1 --reruns-delay=30 \
--cov=awswrangler --cov-report=xml --cov-report term-missing --cov-branch \
--cov-fail-under={env:COV_FAIL_UNDER} \
--dist load --maxschedchunk 1 \
--junitxml=test-reports/junit.xml --log-file=test-reports/logs.txt tests/unit
[testenv:py{310,311,312,313,314}-distributed]
runner = uv-venv-lock-runner
passenv =
AWS_PROFILE
AWS_DEFAULT_REGION
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
AWS_SESSION_TOKEN
setenv =
COV_FAIL_UNDER = 74.00
WR_CPU_COUNT = 16
allowlist_externals =
pytest
uv
commands_pre =
uv sync --frozen --verbose --all-extras
commands =
uv run pytest -n {posargs} -s -v --timeout=600 --reruns=1 --reruns-delay=30 \
--cov=awswrangler --cov-report=xml --cov-report term-missing --cov-branch \
--cov-fail-under={env:COV_FAIL_UNDER} \
--dist load --maxschedchunk 1 \
--junitxml=test-reports/junit.xml --log-file=test-reports/logs.txt tests/unit