Repository navigation
Keep title style properties in to_templated #862
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Run Percy | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| python-311-percy: | |
| name: Run Percy | |
| runs-on: ubuntu-latest | |
| env: | |
| PERCY_ENABLED: "True" | |
| PERCY_PROJECT: plotly/plotly.py | |
| PERCY_TOKEN: ${{ secrets.PERCY_PYTHON_TOKEN_V0 }} | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Set up Python | |
| uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 | |
| with: | |
| python-version: "3.11" | |
| - name: Set up Node | |
| uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 | |
| with: | |
| node-version: "22" | |
| - name: Set up Chrome | |
| uses: browser-actions/setup-chrome@48ad923757ca74d66703209fe939badbdf80f2f4 # v2.2.0 | |
| with: | |
| install-chromedriver: true | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3 | |
| - name: Install requirements | |
| run: | | |
| uv venv | |
| source .venv/bin/activate | |
| uv sync --locked --extra dev_optional | |
| - name: Build HTML figures (Pandas 2) | |
| run: | | |
| source .venv/bin/activate | |
| python tests/percy/plotly-express.py | |
| - name: Run percy snapshots | |
| run: | | |
| npm i @percy/cli | |
| npx percy snapshot -c tests/percy/snapshots.yml tests/percy/ | |
| rm tests/percy/*.html |