Merge pull request 'Isolate the release browser journey from the unit-test job' (#865) from timmy/863-release-e2e-opt-in into main
All checks were successful
CI / lint (push) Successful in 1m52s
CI / build-release (push) Successful in 7s
CI / browser-journey (push) Successful in 1m1s
CI / release-candidate (push) Successful in 6s

This commit is contained in:
timmy 2026-08-15 02:28:01 +00:00
commit 5b954a7a53
3 changed files with 5 additions and 0 deletions

View File

@ -39,6 +39,8 @@ jobs:
browser-journey:
runs-on: ubuntu-latest
needs: build-release
env:
STACKCHAIN_RUN_RELEASE_E2E: "1"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5

View File

@ -15,6 +15,8 @@ from pathlib import Path
import pytest
if os.getenv("STACKCHAIN_RUN_RELEASE_E2E") != "1":
pytest.skip("release artifact browser journey runs only in its gated CI job", allow_module_level=True)
pytest.importorskip("playwright.sync_api")
from playwright.sync_api import Page, expect, sync_playwright

View File

@ -37,5 +37,6 @@ def test_release_promotion_waits_for_artifact_mobile_offline_journey():
assert "actions/download-artifact@v3" in browser
assert "pip install -r requirements-e2e.txt" in browser
assert "python3 -m playwright install --with-deps chromium" in browser
assert 'STACKCHAIN_RUN_RELEASE_E2E: "1"' in browser
assert "python3 -m pytest tests/e2e/test_mobile_offline_issue_release.py -q" in browser
assert "needs: [lint, build-release, browser-journey]" in release