Problem
Currently the tox configuration only maps branches to test environments:
tox:
main: all
dev: testenv1,testenv2
There's no way for users to pass custom CLI flags to tox (e.g., -p for parallel, -x for fail-fast, --override for config overrides).
Proposed Solution
Add a tox-args configuration key that accepts a string of CLI flags to pass to tox:
tox:
main: all
tox-args: "-p -x"
These args will be appended to the tox command built in runner_handler.py.
Requirements
Files to Modify
webhook_server/config/schema.yaml
webhook_server/libs/github_api.py
webhook_server/libs/handlers/runner_handler.py
webhook_server/tests/ (new or existing test files)
examples/.github-webhook-server.yaml
Problem
Currently the
toxconfiguration only maps branches to test environments:There's no way for users to pass custom CLI flags to tox (e.g.,
-pfor parallel,-xfor fail-fast,--overridefor config overrides).Proposed Solution
Add a
tox-argsconfiguration key that accepts a string of CLI flags to pass to tox:These args will be appended to the tox command built in
runner_handler.py.Requirements
tox-argsto config schema (webhook_server/config/schema.yaml)tox-argsingithub_api.py_repo_data_from_config()runner_handler.pyrun_tox()Files to Modify
webhook_server/config/schema.yamlwebhook_server/libs/github_api.pywebhook_server/libs/handlers/runner_handler.pywebhook_server/tests/(new or existing test files)examples/.github-webhook-server.yaml