/
vshmidt
/
streamlit
Обзор
Документация
Войти
/
vshmidt
/
streamlit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
.github/workflows/playwright.yml
67 строк
2 KB
Lukas Masuch
Migrate to uv package manager (#13622)
30 янв 2026, 01:23
Не верифицирован
30 янв 2026, 01:23
4d386cc
Код
Авторство
О чём код?
name: Playwright E2E Tests 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 cancel-in-progress: true jobs: playwright-e2e-tests: runs-on: ubuntu-latest-64-cores timeout-minutes: 30 defaults: run: shell: bash steps: - name: Checkout Streamlit code uses: actions/checkout@v6 with: ref: ${{ inputs.ref }} persist-credentials: false submodules: "recursive" fetch-depth: 2 - name: Set Python version vars uses: ./.github/actions/build_info - name: Setup virtual env uses: ./.github/actions/make_init with: python_version: ${{ env.PYTHON_MAX_VERSION }} - name: Install playwright uses: ./.github/actions/playwright_install - name: Run make frontend-with-profiler run: make frontend-with-profiler - name: Get short SHA id: short_sha run: | if [[ "${{ github.event_name }}" == "pull_request" ]]; then echo "sha_short=$(echo ${{ github.event.pull_request.head.sha }} | cut -c1-6)" >> $GITHUB_OUTPUT else echo "sha_short=$(echo ${{ github.sha }} | cut -c1-6)" >> $GITHUB_OUTPUT fi - name: Run playwright tests run: | cd e2e_playwright rm -rf ./test-results pytest --ignore ./custom_components --browser webkit --browser chromium --browser firefox -n auto --reruns 1 -m "not performance" - name: Upload failed test results uses: actions/upload-artifact@v6 if: always() with: name: playwright_test_results_${{ steps.short_sha.outputs.sha_short }} path: e2e_playwright/test-results