Special case when tests/contest.py is changed

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2022-12-15 06:38:34 +00:00 committed by Pedro Algarvio
parent 84b5067448
commit 9230430e76

View file

@ -228,6 +228,9 @@ def define_testrun(ctx: Context, event_name: str, changed_files: pathlib.Path):
continue
if fpath in ("noxfile.py",):
continue
if fpath == "tests/conftest.py":
# In this particular case, just run the full test suite
testrun["type"] = "full"
selected_changed_files.append(fpath)
testrun_changed_files_path.write_text("\n".join(sorted(selected_changed_files)))
ctx.info("Writing 'testrun' to the github outputs file")