From cd904512a315906039f246c05ce8dd820e2bbb77 Mon Sep 17 00:00:00 2001 From: Filip Michalsky Date: Sun, 22 Jun 2025 21:45:38 -0400 Subject: [PATCH] update --- .github/workflows/test.yml | 3 +-- tests/integration/local/test_core_local.py | 12 ++++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1953e19..8eedada 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -87,8 +87,7 @@ jobs: --tb=short \ --maxfail=5 env: - MODEL_API_KEY: ${{ secrets.MODEL_API_KEY || 'mock-model-key' }} - OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY || 'mock-openai-key' }} + MODEL_API_KEY: ${{ secrets.MODEL_API_KEY }} DISPLAY: ":99" - name: Upload integration test results diff --git a/tests/integration/local/test_core_local.py b/tests/integration/local/test_core_local.py index 0eb11ab..64e2025 100644 --- a/tests/integration/local/test_core_local.py +++ b/tests/integration/local/test_core_local.py @@ -42,6 +42,10 @@ async def test_stagehand_local_initialization(self, stagehand_local): @pytest.mark.asyncio @pytest.mark.integration @pytest.mark.local + @pytest.mark.skipif( + not os.getenv("MODEL_API_KEY"), + reason="MODEL_API_KEY not available - skipping test that requires API access" + ) async def test_local_observe_and_act_workflow(self, stagehand_local): """Test core observe and act workflow in LOCAL mode - extracted from e2e tests.""" stagehand = stagehand_local @@ -79,6 +83,10 @@ async def test_local_observe_and_act_workflow(self, stagehand_local): @pytest.mark.asyncio @pytest.mark.integration @pytest.mark.local + @pytest.mark.skipif( + not os.getenv("MODEL_API_KEY"), + reason="MODEL_API_KEY not available - skipping test that requires API access" + ) async def test_local_basic_navigation_and_observe(self, stagehand_local): """Test basic navigation and observe functionality in LOCAL mode""" stagehand = stagehand_local @@ -101,6 +109,10 @@ async def test_local_basic_navigation_and_observe(self, stagehand_local): @pytest.mark.asyncio @pytest.mark.integration @pytest.mark.local + @pytest.mark.skipif( + not os.getenv("MODEL_API_KEY"), + reason="MODEL_API_KEY not available - skipping test that requires API access" + ) async def test_local_extraction_functionality(self, stagehand_local): """Test extraction functionality in LOCAL mode""" stagehand = stagehand_local