Add test suite, coverage-gated CI, CodeQL, grouped Dependabot & auto-merge#1
Merged
Conversation
…merge Brings Spring-Boot-Admin-Python-component up to the WSE-research baseline (it previously had only a license): * Unit tests for Configuration (config-file parsing + demanded-key validation, missing-file/missing-key errors), the Registration value object, the Registrator admin-server callback (requests faked: success/failure/exception), the myservice blueprint and the app's /health + /about routes — 97% coverage. * End-to-end smoke test that boots the Flask app and serves /health + /. * ci.yml: ruff lint + unit tests with a 90% coverage gate + e2e on every PR/push (pure-Python service, no Docker image step). * codeql.yml: weekly + PR CodeQL scanning (python). * Grouped weekly Dependabot and a gated auto-merge. * Tidy: mark the __main__ entrypoint no-cover, narrow a bare `except` to `except ValueError`, and drop unused imports (clears ruff E722/F401). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
`pprint` has no PyPI distribution (it is a standard-library module), so `pip install -r requirements.txt` failed outright. `configparser` and `argparse` are likewise stdlib in Python 3; the code uses the built-in modules, so the (old) backport packages are unnecessary. Removing all three makes a clean install possible — which the new CI job needs. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Part of the WSE-research repository-standardisation rollout. This repo previously had only a license — this PR adds the full baseline.
What this adds
Configuration(config-file parsing + demanded-key validation, missing-file/missing-key errors), theRegistrationvalue object, theRegistratoradmin-server callback (withrequestsfaked: success / failure / exception), themyserviceblueprint, and the app's/health+/aboutroutes — 97% coverage.tests/e2e/) that boots the Flask app and serves/health+/.ci.yml— ruff lint + unit tests with a 90% coverage gate + e2e on every PR/push (pure-Python service, no Docker image step).codeql.yml— weekly + PR CodeQL scanning (python).__main__entrypoint# pragma: no cover, narrowed a bareexcepttoexcept ValueError, and dropped unused imports (clears ruff E722/F401).🤖 Generated with Claude Code