fix: Update workflow names and conditions for E2E tests
All checks were successful
Run Tests / Lint (push) Successful in 36s
Run Tests / Unit Tests (push) Successful in 42s

This commit is contained in:
2025-10-28 11:26:41 +01:00
parent eb509e3dd2
commit 26843104ee
2 changed files with 15 additions and 6 deletions

View File

@@ -1,17 +1,19 @@
name: Run E2E Tests
on:
push:
branches:
- '**'
pull_request:
workflow_run:
workflows:
- Run Tests
branches:
- main
types:
- completed
workflow_dispatch:
jobs:
e2e:
name: E2E Tests
if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }}
runs-on: ubuntu-latest
container: mcr.microsoft.com/playwright/python:v1.55.0-jammy
env:
@@ -47,7 +49,14 @@ jobs:
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
apt-get install -y nodejs
- name: Checkout code
- name: Checkout code (workflow_run)
if: ${{ github.event_name == 'workflow_run' }}
uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_sha }}
- name: Checkout code (manual)
if: ${{ github.event_name != 'workflow_run' }}
uses: actions/checkout@v4
- name: Export PYTHONPATH