Skip to content

Bump mheap/github-action-required-labels from 5.4.2 to 5.5.0 (#9980) #1

Bump mheap/github-action-required-labels from 5.4.2 to 5.5.0 (#9980)

Bump mheap/github-action-required-labels from 5.4.2 to 5.5.0 (#9980) #1

name: Playwright E2E Tests - Custom Components
on:
push:
branches:
- "develop"
pull_request:
types: [opened, synchronize, reopened]
# Allows workflow to be called from other workflows
workflow_call:
inputs:
ref:
required: true
type: string
# Avoid duplicate workflows on same branch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-playwright-custom-component
cancel-in-progress: true
jobs:
playwright-e2e-tests-custom-components:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout Streamlit code
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
persist-credentials: false
submodules: "recursive"
fetch-depth: 2
- name: Set Python version vars
uses: ./.github/actions/build_info
- name: Set up Python ${{ env.PYTHON_MAX_VERSION }}
uses: actions/setup-python@v5
with:
python-version: "${{ env.PYTHON_MAX_VERSION }}"
- name: Setup virtual env
uses: ./.github/actions/make_init
- name: Install playwright
run: python -m playwright install --with-deps
- name: Run make frontend
run: make frontend
- name: Run make playwright-custom-components
run: make playwright-custom-components
- name: Upload failed test results
uses: actions/upload-artifact@v4
if: always()
with:
name: playwright_test_results
path: e2e_playwright/test-results