|
@@ -10,7 +10,12 @@ envlist = py3.13-{aws,azure,gcp,openstack,mock},lint
|
|
|
|
|
|
|
|
[testenv]
|
|
[testenv]
|
|
|
commands = # see pyproject.toml for coverage options; setup.cfg for flake8
|
|
commands = # see pyproject.toml for coverage options; setup.cfg for flake8
|
|
|
- coverage run --source=cloudbridge -m pytest -v {posargs:-n 5 tests/}
|
|
|
|
|
|
|
+ # Azure integration tests race on the shared default vnet/subnet
|
|
|
|
|
+ # under xdist (get_or_create_default has no locking, so two workers
|
|
|
|
|
+ # creating the same named resource conflict on Azure ARM). Run the
|
|
|
|
|
+ # azure factor serially; other providers stay parallel.
|
|
|
|
|
+ !azure: coverage run --source=cloudbridge -m pytest -v {posargs:-n 5 tests/}
|
|
|
|
|
+ azure: coverage run --source=cloudbridge -m pytest -v {posargs:tests/}
|
|
|
# Combine parallel-mode data files and emit Cobertura XML for upload
|
|
# Combine parallel-mode data files and emit Cobertura XML for upload
|
|
|
# by coverallsapp/github-action in CI. Locally this produces
|
|
# by coverallsapp/github-action in CI. Locally this produces
|
|
|
# coverage.xml in the project root, which IDEs can also consume.
|
|
# coverage.xml in the project root, which IDEs can also consume.
|