-
Notifications
You must be signed in to change notification settings - Fork 0
Improv = REST over serial: push device-model config (incl. eth-only) #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| name: Test | ||
|
|
||
| # Fast host-side unit tests for the Python (MoonDeck / build scripts) and JS | ||
| # (web installer) code that the C++ ctest/scenario suites can't reach. Runs on | ||
| # every PR and on pushes to main/next-iteration. Scoped to the paths these tests | ||
| # cover so a docs-only or pure-firmware change doesn't spend a runner here. | ||
| # | ||
| # Today this pins the Improv frame wire format (test/python + test/js assert a | ||
| # shared golden vector so the device C++, Python, and JS builders can't drift). | ||
| # New Python/JS unit suites land under test/python and test/js and run here. | ||
|
|
||
| # Paths cover every input to the host-side tests: the Python/JS sources under test | ||
| # (scripts, docs/install), the test files themselves, AND the device-side C++ frame | ||
| # contract (src/core/Improv*.h + the platform handler) — a wire-format change in the | ||
| # firmware must run the cross-language golden-vector tests so it can't drift from the | ||
| # Python/JS builders silently. pull_request gates every PR; push runs main only (a | ||
| # direct-to-main hotfix). A PR branch is covered by pull_request alone — listing | ||
| # feature branches under push too would double-run every PR (push + pull_request). | ||
| on: | ||
| pull_request: | ||
| paths: &test-paths | ||
| - 'scripts/**' | ||
| - 'docs/install/**' | ||
| - 'src/core/ImprovFrame.h' | ||
| - 'src/core/ImprovOpReassembler.h' | ||
| - 'src/platform/esp32/platform_esp32_improv.cpp' | ||
| - 'test/python/**' | ||
| - 'test/js/**' | ||
| - '.github/workflows/test.yml' | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: *test-paths | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| python: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: astral-sh/setup-uv@v3 | ||
| # pytest + pyserial come from the test file's inline PEP-723 block; passing | ||
| # them via --with is the explicit, discovery-friendly form (a bare `pytest | ||
| # <dir>` doesn't honour a test file's own inline deps). | ||
| - name: pytest | ||
| run: uv run --with pytest --with pyserial pytest test/python -q | ||
|
|
||
| js: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| persist-credentials: false | ||
| # Node's built-in test runner — no npm install, no package.json. The glob | ||
| # form is required: a bare directory arg is treated as a module to execute. | ||
| - name: node --test | ||
| run: node --test "test/js/**/*.test.mjs" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: MoonModules/projectMM
Length of output: 1153
Pin GitHub Actions to commit SHAs to mitigate supply-chain risks.
Using moving tags like
@v4and@v3exposes your workflows to potential compromises of upstream action repositories. Pin each action to a specific commit SHA instead.This applies to:
actions/checkout@v4astral-sh/setup-uv@v3actions/checkout@v4🧰 Tools
🪛 zizmor (1.25.2)
[error] 38-38: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
[error] 41-41: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
🤖 Prompt for AI Agents
Source: Linters/SAST tools