Skip to content

Commit 63c8f40

Browse files
Merge pull request #35 from FaserF/more-bug-fixes
More bug fixes for modern UI
2 parents 1dad977 + b02d591 commit 63c8f40

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+6508
-1198
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,4 @@ jobs:
2020
run: pip install ruff
2121

2222
- name: Run Ruff (Backend)
23-
run: ruff check --fix --exit-zero src/
24-
25-
- name: Commit and Push Fixes
26-
if: always()
27-
run: |
28-
git config --global user.name "github-actions[bot]"
29-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
30-
git add src/
31-
if ! git diff --cached --quiet; then
32-
git commit -m "style: auto-fix ruff linting issues"
33-
git push
34-
fi
23+
run: ruff check --exit-zero src/

.github/workflows/pr-assistant.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions:
1111
jobs:
1212
auto-fix:
1313
runs-on: ubuntu-latest
14-
if: github.actor != 'github-actions[bot]'
14+
if: false # github.actor != 'github-actions[bot]'
1515
steps:
1616
- uses: actions/checkout@v6
1717
with:

.github/workflows/test.yml

Lines changed: 31 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,41 +8,52 @@ on:
88
type: string
99

1010
jobs:
11-
test:
12-
runs-on: ubuntu-latest
11+
test-backend:
12+
runs-on: windows-latest
13+
if: inputs.component == 'backend'
14+
strategy:
15+
fail-fast: true
16+
max-parallel: 1
17+
matrix:
18+
python-version: ["3.13", "3.14"]
19+
1320
steps:
1421
- uses: actions/checkout@v6
1522

16-
- name: Test Backend
17-
if: inputs.component == 'backend'
23+
- name: Set up Python ${{ matrix.python-version }}
1824
uses: actions/setup-python@v6
1925
with:
20-
python-version: "3.12"
21-
- name: Install backend deps
22-
if: inputs.component == 'backend'
26+
python-version: ${{ matrix.python-version }}
27+
28+
- name: Install dependencies
2329
run: |
24-
python -m pip install --upgrade pip
25-
pip install .[gui]
26-
pip install pytest
27-
- name: Run Backend Tests
28-
if: inputs.component == 'backend'
30+
python -m pip install --upgrade pip
31+
pip install .[test,gui]
32+
33+
- name: Run All Python Tests
2934
run: |
30-
export PYTHONPATH=$PYTHONPATH:$(pwd)/src
31-
pytest tests || echo "No tests yet"
35+
pytest tests/ -v --tb=short
36+
env:
37+
PYTHONPATH: ${{ github.workspace }}/src
3238

33-
test_cli_core:
34-
runs-on: ubuntu-latest
39+
test-cli-core:
40+
runs-on: windows-latest
41+
if: inputs.component == 'cli'
3542
steps:
3643
- uses: actions/checkout@v6
44+
3745
- name: Set up Python
3846
uses: actions/setup-python@v6
3947
with:
40-
python-version: "3.12"
48+
python-version: "3.13"
49+
4150
- name: Install Core (No GUI)
4251
run: |
4352
python -m pip install --upgrade pip
44-
pip install .
45-
pip install pytest
53+
pip install .[test]
54+
4655
- name: Run CLI Dynamic Tests
4756
run: |
48-
pytest tests/test_cli_dynamic.py
57+
pytest tests/test_cli_dynamic.py tests/test_cli_core.py -v
58+
env:
59+
PYTHONPATH: ${{ github.workspace }}/src

.github/workflows/tests-modern.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,15 @@ build_debug/switchcraft_modern/base_library.zip
101101
*.toc
102102
build_debug/switchcraft_modern/PYZ-00.pyz
103103
/build_debug
104+
i18n_output.txt
105+
inspect_tabs.py
106+
inspect_out.txt
107+
inspect_flet.py
108+
flet_inspect_2.py
109+
flet_inspect.py
110+
fix_deprecations.py
111+
button_inspect.txt
112+
test_flet_controls.py
113+
test_tabs.py
114+
test_tabs_2.py
115+
pytest_out.txt

.nojekyll

Whitespace-only changes.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# SwitchCraft 🧙‍♂️
22

3-
<img src="images/switchcraft_logo_with_Text.png" width="200" alt="SwitchCraft Logo">
3+
<img src="src/switchcraft/assets/switchcraft_logo_with_Text.png" width="200" alt="SwitchCraft Logo">
44

55
[![GitHub all releases](https://img.shields.io/github/downloads/FaserF/SwitchCraft/total?color=blue&style=flat-square&logo=github&label=Downloads)](https://github.com/FaserF/SwitchCraft/releases)
66

77
**SwitchCraft is your comprehensive packaging assistant for IT Professionals. It goes beyond simple switch identification to streamline your entire application packaging workflow.**
88

99
<div align="center">
10-
<img src="images/switchcraft_ui.png" alt="SwitchCraft UI" width="1000" />
10+
<img src="src/switchcraft/assets/switchcraft_ui.png" alt="SwitchCraft UI" width="1000" />
1111
</div>
1212

1313
## ⚠️ Platform Support & Limitations

docs/.nojekyll

Whitespace-only changes.

docs/.vitepress/config.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default defineConfig({
99
lang: 'en-US',
1010

1111
head: [
12-
['link', { rel: 'icon', href: 'data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🧙‍♂️</text></svg>' }],
12+
['link', { rel: 'icon', href: '/favicon.ico' }],
1313
['meta', { name: 'theme-color', content: '#6366f1' }],
1414
['meta', { name: 'og:type', content: 'website' }],
1515
['meta', { name: 'og:title', content: 'SwitchCraft - The Ultimate Packaging Assistant' }],

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ hero:
66
text: "The Ultimate Packaging Assistant"
77
tagline: "Analyze installers, create Intune packages, and streamline your IT workflow — all in one powerful tool."
88
image:
9-
src: https://github.com/FaserF/SwitchCraft/raw/main/images/switchcraft_logo_with_Text.png
9+
src: https://github.com/FaserF/SwitchCraft/raw/main/src/switchcraft/assets/switchcraft_logo_with_Text.png
1010
alt: SwitchCraft Logo
1111
actions:
1212
- theme: brand
@@ -57,7 +57,7 @@ features:
5757
## Preview
5858

5959
<div style="text-align: center; margin: 2rem 0;">
60-
<img src="https://github.com/FaserF/SwitchCraft/raw/main/images/switchcraft_ui.png" alt="SwitchCraft Modern UI" style="max-width: 100%; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.15);" />
60+
<img src="https://github.com/FaserF/SwitchCraft/raw/main/src/switchcraft/assets/switchcraft_ui.png" alt="SwitchCraft Modern UI" style="max-width: 100%; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.15);" />
6161
</div>
6262

6363
## Quick Start

0 commit comments

Comments
 (0)