Skip to content

Commit 5fba564

Browse files
committed
Merge branch 'main' into fm/stg-494-fix-ci
2 parents 545db58 + 0336cad commit 5fba564

16 files changed

Lines changed: 169 additions & 60 deletions

.env.example

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
MODEL_API_KEY = "your-favorite-llm-api-key"
22
BROWSERBASE_API_KEY = "browserbase-api-key"
33
BROWSERBASE_PROJECT_ID = "browserbase-project-id"
4-
STAGEHAND_API_URL = "api_url"
54
STAGEHAND_ENV= "LOCAL or BROWSERBASE"

.github/workflows/publish.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,33 +23,35 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- name: Check out repository
26-
uses: actions/checkout@v3
26+
uses: actions/checkout@v4
2727
with:
2828
fetch-depth: 0
2929

3030
- name: Set up Python
3131
uses: actions/setup-python@v4
3232
with:
33-
python-version: '3.10'
33+
python-version: '3.11'
3434

3535
- name: Install dependencies
3636
run: |
3737
python -m pip install --upgrade pip
38-
pip install build twine wheel setuptools ruff
38+
pip install build twine wheel setuptools ruff black
3939
pip install -r requirements.txt
4040
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
4141
42-
- name: Run Ruff linting
42+
- name: Run linting and formatting
4343
run: |
44-
# Run Ruff linter
45-
ruff check .
44+
# Run linter
45+
black --check --diff stagehand
4646
4747
# Run Ruff formatter check (without modifying files)
48-
ruff format --check .
48+
ruff check stagehand
4949
50-
- name: Run tests
51-
run: |
52-
pytest
50+
# TODO: add back as soon as CI is passing
51+
# Commenting to cut release
52+
# - name: Run tests
53+
# run: |
54+
# pytest
5355

5456
- name: Calculate new version
5557
id: version
@@ -99,8 +101,6 @@ jobs:
99101
100102
- name: Commit version bump
101103
run: |
102-
git config --local user.email "action@github.com"
103-
git config --local user.name "GitHub Action"
104104
git add pyproject.toml stagehand/__init__.py
105105
git commit -m "Bump version to ${{ steps.version.outputs.new_version }}"
106106
git tag "v${{ steps.version.outputs.new_version }}"

README.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
<div id="toc" align="center">
2-
<ul style="list-style: none">
1+
<div id="toc" align="center" style="margin-bottom: 0;">
2+
<ul style="list-style: none; margin: 0; padding: 0;">
33
<a href="https://stagehand.dev">
44
<picture>
5-
<source media="(prefers-color-scheme: dark)" srcset="https://stagehand.dev/logo-dark.svg" />
6-
<img alt="Stagehand" src="https://www.stagehand.dev/_next/image?url=%2Flogos%2Fmain-logo.webp&w=384&q=75" width="200" style="margin-right: 30px;" />
5+
<source media="(prefers-color-scheme: dark)" srcset="media/dark_logo.png" />
6+
<img alt="Stagehand" src="media/light_logo.png" width="200" style="margin-right: 30px;" />
77
</picture>
88
</a>
99
</ul>
1010
</div>
11-
1211
<p align="center">
1312
<strong>The AI Browser Automation Framework</strong><br>
14-
<a href="https://docs.stagehand.dev">Read the Docs</a>
13+
<a href="https://docs.stagehand.dev">Read the Docs</a>
1514
</p>
1615

1716
<p align="center">
@@ -23,14 +22,14 @@
2322
</a>
2423
<a href="https://github.com/browserbase/stagehand/tree/main?tab=MIT-1-ov-file#MIT-1-ov-file">
2524
<picture>
26-
<source media="(prefers-color-scheme: dark)" srcset="https://stagehand.dev/api/assets/license?mode=dark" />
27-
<img alt="MIT License" src="https://stagehand.dev/api/assets/license?mode=light" />
25+
<source media="(prefers-color-scheme: dark)" srcset="media/dark_license.svg" />
26+
<img alt="MIT License" src="media/light_license.svg" />
2827
</picture>
2928
</a>
30-
<a href="https://join.slack.com/t/stagehand-dev/shared_invite/zt-2tdncfgkk-fF8y5U0uJzR2y2_M9c9OJA">
29+
<a href="https://stagehand.dev/slack">
3130
<picture>
32-
<source media="(prefers-color-scheme: dark)" srcset="https://stagehand.dev/api/assets/slack?mode=dark" />
33-
<img alt="Slack Community" src="https://stagehand.dev/api/assets/slack?mode=light" />
31+
<source media="(prefers-color-scheme: dark)" srcset="media/dark_slack.svg" />
32+
<img alt="Slack Community" src="media/light_slack.svg" />
3433
</picture>
3534
</a>
3635
</p>

media/dark_license.svg

Lines changed: 11 additions & 0 deletions
Loading

media/dark_logo.png

3.58 KB
Loading

0 commit comments

Comments
 (0)