Skip to content

Commit 959cafe

Browse files
committed
fix: distrib tests
1 parent a389406 commit 959cafe

File tree

3 files changed

+59
-7
lines changed

3 files changed

+59
-7
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ dev = [
8383
"pytest-xdist>=3.6.1,<4",
8484
"s3fs==0.4.2",
8585
"tox>=4.23.2,<5",
86+
"tox-uv==1.28.0",
8687
"bump-my-version>=0.29,<1.3",
8788
"IPython>=8.18.1,<9",
8889
"jupyterlab~=4.3",

tox.ini

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ allowlist_externals =
1717
commands_pre =
1818
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
1919
commands =
20-
uv run pytest -n {posargs} -s -v --timeout=300 --reruns=2 --reruns-delay=15 \
20+
uv run pytest -n {posargs} -s -v --timeout=600 --reruns=1 --reruns-delay=30 \
2121
--cov=awswrangler --cov-report=xml --cov-report term-missing --cov-branch \
2222
--cov-fail-under={env:COV_FAIL_UNDER} \
23-
--dist load --maxschedchunk 2 \
23+
--dist load --maxschedchunk 1 \
2424
--junitxml=test-reports/junit.xml --log-file=test-reports/logs.txt tests/unit
2525

2626
[testenv:py{39,310,311,312,313}-distributed]
27+
runner = uv-venv-lock-runner
2728
passenv =
2829
AWS_PROFILE
2930
AWS_DEFAULT_REGION
@@ -33,8 +34,14 @@ passenv =
3334
setenv =
3435
COV_FAIL_UNDER = 74.00
3536
WR_CPU_COUNT = 16
36-
allowlist_externals = uv
37+
allowlist_externals =
38+
pytest
39+
uv
3740
commands_pre =
3841
uv sync --frozen --verbose --all-extras
3942
commands =
40-
{[testenv]commands}
43+
uv run pytest {posargs} -s -v --timeout=600 --reruns=1 --reruns-delay=30 \
44+
--cov=awswrangler --cov-report=xml --cov-report term-missing --cov-branch \
45+
--cov-fail-under={env:COV_FAIL_UNDER} \
46+
--dist load --maxschedchunk 1 \
47+
--junitxml=test-reports/junit.xml --log-file=test-reports/logs.txt tests/unit

uv.lock

Lines changed: 47 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)