Skip to content

Commit 6504253

Browse files
committed
fix build
1 parent 1fe21de commit 6504253

File tree

6 files changed

+24
-12
lines changed

6 files changed

+24
-12
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
uses: actions/checkout@v4
1919

2020
- name: Set up Python 3.12
21-
uses: actions/setup-python@v3
21+
uses: actions/setup-python@v5
2222
with:
2323
python-version: "3.12"
2424

@@ -37,7 +37,7 @@ jobs:
3737
Compress-Archive -Path .\dist\* -DestinationPath windows-dist.zip
3838
3939
- name: Upload Windows Build Artifact
40-
uses: actions/upload-artifact@v3
40+
uses: actions/upload-artifact@v4
4141
with:
4242
name: windows-dist
4343
path: windows-dist.zip
@@ -49,7 +49,7 @@ jobs:
4949
uses: actions/checkout@v4
5050

5151
- name: Set up Python 3.12
52-
uses: actions/setup-python@v3
52+
uses: actions/setup-python@v5
5353
with:
5454
python-version: "3.12"
5555

@@ -68,7 +68,7 @@ jobs:
6868
zip -r linux-dist.zip dist/
6969
7070
- name: Upload Linux Build Artifact
71-
uses: actions/upload-artifact@v3
71+
uses: actions/upload-artifact@v4
7272
with:
7373
name: linux-dist
7474
path: linux-dist.zip
@@ -82,13 +82,13 @@ jobs:
8282
uses: actions/checkout@v4
8383

8484
- name: Download Windows Build Artifact
85-
uses: actions/download-artifact@v3
85+
uses: actions/download-artifact@v4
8686
with:
8787
name: windows-dist
8888
path: .
8989

9090
- name: Download Linux Build Artifact
91-
uses: actions/download-artifact@v3
91+
uses: actions/download-artifact@v4
9292
with:
9393
name: linux-dist
9494
path: .

.github/workflows/test.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
fetch-depth: 0 # Needed for committing changes
2525

2626
- name: Set up Python 3.12
27-
uses: actions/setup-python@v3
27+
uses: actions/setup-python@v5
2828
with:
2929
python-version: "3.12"
3030
- name: Install system dependencies
@@ -57,6 +57,13 @@ jobs:
5757
- name: Generate coverage badge
5858
uses: tj-actions/coverage-badge-py@v2
5959

60+
- name: Check for coverage badge changes
61+
id: verify-changed-files
62+
uses: tj-actions/verify-changed-files@v16
63+
with:
64+
files: |
65+
coverage.svg
66+
6067
- name: Commit files
6168
if: steps.verify-changed-files.outputs.files_changed == 'true'
6269
run: |

app/ui.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,8 @@ def _update_unsupported_actions_label(self) -> None:
423423
self.unsupported_actions_label.setStyleSheet("color: #666666;")
424424

425425
def update_validation_status_indicator(self, report: Optional[ValidationReport]) -> None:
426+
self.binding_validation_report = report
427+
426428
if report is None:
427429
self.validation_status_label.setText("Binding status: Not evaluated")
428430
self.validation_status_label.setStyleSheet("color: #666666;")
@@ -883,7 +885,6 @@ def update_control_map(self) -> None:
883885
desired_profile = self.build_control_profile_snapshot()
884886
plan = self.binding_planner.plan_from_profile(desired_profile)
885887
report = self.binding_planner.validate_plan(plan)
886-
self.binding_validation_report = report
887888
self._log_binding_validation_report(report)
888889

889890
for binding in plan.to_remove:

ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ jobs:
1414
test:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: ./test.yml
17+
- uses: ./.github/workflows/test.yml
1818

1919
build-windows:
2020
needs: test
2121
runs-on: windows-latest
2222
steps:
23-
- uses: ./build.yml
23+
- uses: ./.github/workflows/build.yml
2424

2525
build-linux:
2626
needs: test
2727
runs-on: ubuntu-latest
2828
steps:
29-
- uses: ./build.yml
29+
- uses: ./.github/workflows/build.yml

tests/test_ui.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,15 +318,18 @@ def test_unsupported_actions_label_updates(main_window: ControlMapperApp) -> Non
318318
def test_validation_status_label(main_window: ControlMapperApp) -> None:
319319
"""Validation status label reflects report severity."""
320320
main_window.update_validation_status_indicator(None)
321+
assert main_window.binding_validation_report is None
321322
assert main_window.validation_status_label.text() == "Binding status: Not evaluated"
322323

323324
report = ValidationReport()
324325
report.add(ValidationIssue(level="warning", message="example warning"))
325326
main_window.update_validation_status_indicator(report)
327+
assert main_window.binding_validation_report is report
326328
assert main_window.validation_status_label.text() == "Binding status: 1 warning(s)"
327329

328330
report = ValidationReport()
329331
report.add(ValidationIssue(level="error", message="example error"))
330332
report.add(ValidationIssue(level="ERROR", message="another"))
331333
main_window.update_validation_status_indicator(report)
334+
assert main_window.binding_validation_report is report
332335
assert main_window.validation_status_label.text() == "Binding status: 2 error(s)"

todo.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
- [x] Exercise the new `uv` workflow (`uv sync`, `uv run`). _Next:_ remove or document `requirements.txt` deprecation.
55
- [x] Capture locking/release strategy (e.g. `uv lock`) and wire it into CI. `uv.lock` now checked in; add CI step later.
66
- [ ] Validate the Nuitka build script on Windows and produce a distributable artifact. *(Blocked pending service/domain refactor.)*
7-
- [ ] Decide whether the Nuitka build should be `onefile` or directory based for faster launches.
7+
- [ ] the Nuitka build should be `onefile`
8+
- [x] fix github actions errors This request has been automatically failed because it uses a deprecated version of `actions/upload-artifact: v3`
89
- [ ] Add packaging docs to `README.md` once the build path is confirmed.
910

1011
## Codebase Cleanup

0 commit comments

Comments
 (0)