A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
upload playright snapshots to GCS bucket (#317)
Myles Scolnickda25307f8eea
diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.ymlindex 1f076f4604..b5e46100d9 100644--- a/.github/workflows/playwright.yml+++ b/.github/workflows/playwright.yml@@ -14,7 +14,7 @@ jobs:shell: bashenv:NODE_ENV: test- DEBUG: 'pw:webserver'+ DEBUG: "pw:webserver"steps:- name: 🛑 Cancel Previous Runs@@ -36,8 +36,8 @@ jobs:uses: actions/setup-node@v3with:node-version: 18- cache: 'pnpm'- cache-dependency-path: '**/pnpm-lock.yaml'+ cache: "pnpm"+ cache-dependency-path: "**/pnpm-lock.yaml"- name: 📦 Build frontendrun: make fe@@ -45,7 +45,7 @@ jobs:- name: 🐍 Setup Python 3.10uses: actions/setup-python@v4with:- python-version: '3.10'+ python-version: "3.10"- name: 🐍 Install marimorun: |@@ -77,41 +77,30 @@ jobs:working-directory: ./frontendrun: npx playwright test- - name: 📸 Save screenshots- uses: getsentry/[email protected]- # Beta: Don't fail the build- # Only on main- if: github.ref == 'refs/heads/main'- continue-on-error: true+ - name: ☁️ Google Auth+ uses: google-github-actions/auth@v1with:- save-only: true- snapshot-path: frontend/e2e-tests/screenshots-- - name: 🤖 Diff screenshots- uses: getsentry/[email protected]- id: visual-snapshots-diff- # Only diff on PRs- if: github.ref != 'refs/heads/main' && github.event_name == 'pull_request'- # Beta: Don't fail the build- continue-on-error: true+ credentials_json: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}++ - name: 🌲 Get branch name+ id: branch-name+ uses: tj-actions/branch-names@v7++ - name: 📦 Upload to bucket (PR)+ uses: google-github-actions/upload-cloud-storage@v1+ # Only on PRs+ if: github.event_name == 'pull_request'with:- base-branch: main- api-endpoint: 'https://marimo.io/api'- api-token: ${{ secrets.VISUAL_SNAPSHOT_SECRET }}- gcs-bucket: 'marimo-oss-visual-snapshots'- snapshot-path: frontend/e2e-tests/screenshots+ destination: marimo-oss-visual-snapshots/branches/${{ steps.branch-name.outputs.current_branch }}+ path: frontend/e2e-tests/screenshots- - name: 📊 Upload snapshots- uses: actions/upload-artifact@v3- # Beta: Don't fail the build- continue-on-error: true+ - name: 📦 Upload to bucket (main)+ uses: google-github-actions/upload-cloud-storage@v1+ # Only on main branch+ if: github.event_name == 'push' && github.ref == 'refs/heads/main'with:- name: visual-snapshots-diffs- path: |- ${{ steps.visual-snapshots-diff.outputs.merge-base-images-path }}- ${{ steps.visual-snapshots-diff.outputs.base-images-path }}- ${{ steps.visual-snapshots-diff.outputs.results-path }}- retention-days: 1+ destination: marimo-oss-visual-snapshots/main+ path: frontend/e2e-tests/screenshots- name: 📊 Upload reportuses: actions/upload-artifact@v3