File tree Expand file tree Collapse file tree 4 files changed +18
-4
lines changed
Expand file tree Collapse file tree 4 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ jobs:
100100 component : backend
101101
102102 test-e2e :
103- needs : [lint, decision]
103+ needs : [lint, decision, test-backend ]
104104 if : needs.decision.outputs.run_e2e == 'true'
105105 uses : ./.github/workflows/test.yml
106106 with :
Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ jobs:
212212 cd docs
213213 npx vitepress build
214214 env :
215- BASE_URL : /${{ github.event.repository.name }}/
215+ BASE_URL : /
216216
217217 - name : Upload to gh-pages
218218 uses : JamesIves/github-pages-deploy-action@v4
Original file line number Diff line number Diff line change 6969
7070 cd build_web
7171 # Simplified publish for preview - use the PR specific base-url
72- flet publish web_entry.py --app-name "SwitchCraft Demo PR-$PR_NUMBER" --base-url "/${{ github.event.repository.name }}/ pr-preview/pr-$PR_NUMBER/demo/" --distpath ../dist --assets switchcraft/assets
72+ flet publish web_entry.py --app-name "SwitchCraft Demo PR-$PR_NUMBER" --base-url "/pr-preview/pr-$PR_NUMBER/demo/" --distpath ../dist --assets switchcraft/assets
7373 cd ..
7474
7575 python scripts/prepare_web_dist.py --patch dist
9898 run : npm run docs:build
9999 working-directory : docs
100100 env :
101- BASE_URL : /${{ github.event.repository.name }}/ pr-preview/pr-${{ github.event.pull_request.number }}/
101+ BASE_URL : /pr-preview/pr-${{ github.event.pull_request.number }}/
102102
103103 - name : Deploy Preview
104104 uses : rossjrw/pr-preview-action@v1
@@ -107,6 +107,13 @@ jobs:
107107 preview-branch : gh-pages
108108 umbrella-dir : pr-preview
109109 action : auto
110+ comment : |
111+ 🚀 **PR Preview is ready!**
112+
113+ - 📄 [Documentation Preview](https://switchcraft.fabiseitz.de/pr-preview/pr-${{ github.event.pull_request.number }}/)
114+ - 🎮 [Web Demo Preview](https://switchcraft.fabiseitz.de/pr-preview/pr-${{ github.event.pull_request.number }}/demo/)
115+
116+ *Built with love and GitHub Actions.*
110117
111118 cleanup-preview :
112119 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 1+ import pytest
2+ import flet as ft
3+ from unittest .mock import patch , MagicMock
14from conftest import is_ci_environment
25
6+ from switchcraft .gui_modern .views .analyzer_view import ModernAnalyzerView
7+ from switchcraft .gui_modern .views .dashboard_view import DashboardView
8+ # Note: LibraryView and ModernSettingsView are imported inline in their respective tests
9+
310@pytest .fixture (autouse = True )
411def global_test_mocks ():
512 """Globally mock background threads and blocking calls for UI tests."""
You can’t perform that action at this time.
0 commit comments