do not install tox repeatedly
This commit is contained in:
parent
2c1a1bf68e
commit
a9011880a3
|
@ -20,7 +20,7 @@ Overview
|
||||||
|
|
||||||
- The plugin's ``tox`` config is adjusted to ensure the local ``pytest`` is used.
|
- The plugin's ``tox`` config is adjusted to ensure the local ``pytest`` is used.
|
||||||
|
|
||||||
- Uses a static command set: ``pip install tox`` & ``tox -e {toxenv}``.
|
- Uses a static command set: ``tox -e {toxenv}``.
|
||||||
|
|
||||||
How To Add Additional Plugin(s)
|
How To Add Additional Plugin(s)
|
||||||
-------------------------------
|
-------------------------------
|
||||||
|
@ -157,17 +157,11 @@ Any additions can be verified locally with the following process:
|
||||||
DEBUG | downstream_runner.build_run | matrix[job]: {'name': 'py39', 'tox_cmd': 'py39'}
|
DEBUG | downstream_runner.build_run | matrix[job]: {'name': 'py39', 'tox_cmd': 'py39'}
|
||||||
DEBUG | downstream_runner.build_run | matrix[job]: {'name': 'py310', 'tox_cmd': 'py310'}
|
DEBUG | downstream_runner.build_run | matrix[job]: {'name': 'py310', 'tox_cmd': 'py310'}
|
||||||
DEBUG | downstream_runner.build_run | matrix[job]: {'name': 'pypy3', 'tox_cmd': 'pypy3'}
|
DEBUG | downstream_runner.build_run | matrix[job]: {'name': 'pypy3', 'tox_cmd': 'pypy3'}
|
||||||
DEBUG | downstream_runner.build_run | built run: {'py37': ['pip install tox', 'tox -e py37'], 'py38': ['pip install tox', 'tox -e py38'], 'py39': ['pip install tox',
|
DEBUG | downstream_runner.build_run | built run: {'py37': ['tox -e py37'], 'py38': ['tox -e py38'], 'py39': ['tox -e py39'], 'py310': ['tox -e py310'], 'pypy3': ['tox -e pypy3']}
|
||||||
'tox -e py39'], 'py310': ['pip install tox', 'tox -e py310'], 'pypy3': ['pip install tox', 'tox -e pypy3']}
|
|
||||||
INFO | downstream_runner.run | --> running: 'pip install tox'
|
|
||||||
INFO | downstream_runner.run | --> running: 'tox -e py37'
|
INFO | downstream_runner.run | --> running: 'tox -e py37'
|
||||||
INFO | downstream_runner.run | --> running: 'pip install tox'
|
|
||||||
INFO | downstream_runner.run | --> running: 'tox -e py38'
|
INFO | downstream_runner.run | --> running: 'tox -e py38'
|
||||||
INFO | downstream_runner.run | --> running: 'pip install tox'
|
|
||||||
INFO | downstream_runner.run | --> running: 'tox -e py39'
|
INFO | downstream_runner.run | --> running: 'tox -e py39'
|
||||||
INFO | downstream_runner.run | --> running: 'pip install tox'
|
|
||||||
INFO | downstream_runner.run | --> running: 'tox -e py310'
|
INFO | downstream_runner.run | --> running: 'tox -e py310'
|
||||||
INFO | downstream_runner.run | --> running: 'pip install tox'
|
|
||||||
INFO | downstream_runner.run | --> running: 'tox -e pypy3'
|
INFO | downstream_runner.run | --> running: 'tox -e pypy3'
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -299,7 +299,7 @@ class DownstreamRunner:
|
||||||
logger.debug("job_name: %s", job)
|
logger.debug("job_name: %s", job)
|
||||||
for matrix in self.matrix[job]:
|
for matrix in self.matrix[job]:
|
||||||
logger.debug("matrix[job]: %s", matrix)
|
logger.debug("matrix[job]: %s", matrix)
|
||||||
run[matrix["name"]] = ["pip install tox", f"tox -e {matrix['tox_cmd']}"]
|
run[matrix["name"]] = [f"tox -e {matrix['tox_cmd']}"]
|
||||||
|
|
||||||
logger.debug("built run: %s", run)
|
logger.debug("built run: %s", run)
|
||||||
return run
|
return run
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
python3.9 -m pip install --no-cache-dir pyyaml sh
|
python3.9 -m pip install --no-cache-dir pyyaml tox sh
|
||||||
|
|
||||||
cd /pytest
|
cd /pytest
|
||||||
python3.9 -u -m testing.downstream_testing.downstream_runner $DS_NAME $DS_YAML $DS_JOBS --matrix-exclude $DS_MATRIX_EXCLUDE
|
python3.9 -u -m testing.downstream_testing.downstream_runner $DS_NAME $DS_YAML $DS_JOBS --matrix-exclude $DS_MATRIX_EXCLUDE
|
||||||
|
|
Loading…
Reference in New Issue