remove pandas 1 2 comparison #1
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: | |
| pull_request: | |
| types: [opened, reopened] | |
| workflow_dispatch: | |
| jobs: | |
| python-311-percy: | |
| name: python_311_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@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| - name: Set up Chrome | |
| uses: browser-actions/setup-chrome@v2.1.1 | |
| with: | |
| install-chromedriver: true | |
| - name: Install requirements | |
| run: | | |
| curl -LsSf https://astral.sh/uv/install.sh | sh | |
| uv venv | |
| source .venv/bin/activate | |
| uv sync --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 |