Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions tests/integration/local/test_core_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down