From d879904540ed86aba7a56a39e9e3b5d82aae2b39 Mon Sep 17 00:00:00 2001 From: Chris Coutinho Date: Mon, 13 Oct 2025 21:00:20 +0200 Subject: [PATCH] test: Skip for GITHUB_ACTIONS inside fixture --- tests/conftest.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index 8a55fa8..bbf2fe7 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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