test: Skip for GITHUB_ACTIONS inside fixture

This commit is contained in:
Chris Coutinho
2025-10-13 21:00:20 +02:00
parent 2ae3c423e9
commit d879904540
+7
View File
@@ -741,6 +741,13 @@ async def interactive_oauth_token(oauth_callback_server) -> str:
Automatically skips when running in GitHub Actions CI.
"""
# Skip if GITHUB_ACTIONS env var available, meaning that no interactive
# browser is available
if "GITHUB_ACTIONS" in os.environ:
pytest.skip(
reason="Running in GitHub Action, skipping due to lack of interactive browser"
)
import time
import webbrowser