ci: add GitHub Actions test workflow - #43
Merged
Merged
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
mainactions/checkoutandactions/setup-pythonto reviewed immutable release commitsWhy
The repository had no automated pull-request validation, so regressions could only be caught by local testing. Backlog 5.1 requires a minimal, inspectable test pipeline before adding static-analysis, dependency-scanning, and artifact jobs.
Python 3.11 compatibility fix
The first real CI run exposed a Python-version mismatch:
src/static_analyzer/analysis_engine.pyused the Python 3.12 PEP 695typestatement even thoughpyproject.tomldeclares Python 3.11 as the minimum supported version.The fix replaces that statement with a Python 3.11-compatible
TypeAliasdeclaration. A repository-wide regression test now parses every Python source file undersrc,sample_app,tools, andtestsusing the Python 3.11 grammar so newer-only syntax is caught before reaching CI.Security and operational impact
contents: readpull_request, not the privilegedpull_request_targeteventValidation
ubuntu-latest: 985 passedsrcandtools: 0 findingssample_app: exactly 5 expected findingsgit diff --check: passedFollow-up
A subsequent PR will add deterministic static-analysis and dependency-scan gates plus JSON report artifact uploads after this foundation workflow.