Skip to content

Commit 7eea6f0

Browse files
committed
small CI fixes
1 parent 45166c1 commit 7eea6f0

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

.github/workflows/ci-orchestrator.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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:

.github/workflows/deploy-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

.github/workflows/docs_preview.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
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
@@ -98,7 +98,7 @@ jobs:
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

tests/test_ui_interactions.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1+
import pytest
2+
import flet as ft
3+
from unittest.mock import patch, MagicMock
14
from 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)
411
def global_test_mocks():
512
"""Globally mock background threads and blocking calls for UI tests."""

0 commit comments

Comments
 (0)