We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 647c3dc commit 4c81528Copy full SHA for 4c81528
src/tox_gh/plugin.py
@@ -122,9 +122,12 @@ def tox_before_run_commands(tox_env: ToxEnv) -> None:
122
:param tox_env: the tox environment
123
"""
124
if tox_env.core["is_on_gh_action"]:
125
- assert _STATE.installing # noqa: S101
126
- _STATE.installing = False
127
- print("::endgroup::") # noqa: T201
+ # Check if we're coming from an install phase (defensive check for lock-based runners)
+ if getattr(_STATE, "installing", False):
+ # Traditional path: close the install group that was opened in tox_on_install
128
+ _STATE.installing = False
129
+ print("::endgroup::") # noqa: T201
130
+ # Always open the test execution group
131
print(f"::group::tox:{tox_env.name}") # noqa: T201
132
133
0 commit comments