From 8cd74a9fc4f61cfc893f8663bf005d519440818e Mon Sep 17 00:00:00 2001 From: Dima Gerasimov Date: Sun, 1 Oct 2023 23:20:22 +0100 Subject: [PATCH] ci: attempt to use --parallel flag in tox --- scripts/ci/run | 2 +- tox.ini | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/scripts/ci/run b/scripts/ci/run index 47014ec..fe2719e 100755 --- a/scripts/ci/run +++ b/scripts/ci/run @@ -38,4 +38,4 @@ if ! command -v python3 &> /dev/null; then fi "$PY_BIN" -m pip install --user tox -"$PY_BIN" -m tox +"$PY_BIN" -m tox --parallel --parallel-live "$@" diff --git a/tox.ini b/tox.ini index 9487ae3..860641f 100644 --- a/tox.ini +++ b/tox.ini @@ -15,10 +15,14 @@ passenv = PYTHONPYCACHEPREFIX +# note: --use-pep517 below is necessary for tox --parallel flag to work properly +# otherwise it seems that it tries to modify .eggs dir in parallel and it fails + + # just the very core tests with minimal dependencies [testenv:tests-core] commands = - pip install -e .[testing] + pip install --use-pep517 -e .[testing] # seems that denylist tests rely on it? ideally we should get rid of this in tests-core pip install orjson @@ -47,7 +51,7 @@ commands = # TODO not sure if need it? setenv = MY_CONFIG = nonexistent commands = - pip install -e .[testing] + pip install --use-pep517 -e .[testing] # installed to test my.core.serialize while using simplejson and not orjson pip install simplejson @@ -104,7 +108,7 @@ commands = [testenv:mypy-core] allowlist_externals = cat commands = - pip install -e .[testing,optional] + pip install --use-pep517 -e .[testing,optional] pip install orgparse # used it core.orgmode? pip install gpxpy # for hpi query --output gpx @@ -121,7 +125,7 @@ commands = [testenv:mypy-misc] allowlist_externals = cat commands = - pip install -e .[testing,optional] + pip install --use-pep517 -e .[testing,optional] hpi module install --parallel \ my.arbtt \