Repository navigation
Gate CI on a single ci check - #37
Merged
Merged
Conversation
Add a gate job to ci.yml, reported as ci. It runs whatever happens upstream and fails unless lint, test, and docker all succeeded. Add tests/test_ci_gate.py. It parses the workflow with PyYAML, added as a dev dependency, and fails when a job is missing from the gate's needs. Describe the gate in AGENTS.md and CONTRIBUTING.md. Bump the version to 2.0.6 in pyproject.toml, __init__.py, uv.lock, and the pin example in DEPLOYMENT.md.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #37 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 16 16
Lines 937 937
Branches 140 140
=========================================
Hits 937 937 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Adds a
gatejob toci.yml, reported asci. It needslint,test, anddocker, runs underif: always(), and fails unless every upstream result issuccess.needs.test.resultcovers the whole Python matrix.skippedandcancelledcount as failures.tests/test_ci_gate.pyparsesci.ymland fails when the gate'sneedsdiffers from the set of every other job, or when the gate losesname: ciorif: always(). PyYAML 6.0.3 is added to thedevdependency group for the parse.The main branch ruleset can then require
cialone, in place oflint,test (python 3.10), andtest (python 3.13). The ruleset is edited after this merges, while the three existing contexts still report on this pull request.AGENTS.mdandCONTRIBUTING.mddescribe the gate. The version moves to 2.0.6 inpyproject.toml,src/altiplano/__init__.py,uv.lock, and theDEPLOYMENT.mdpin example, with aChangedentry inCHANGELOG.md.Tested:
uvx ruff@0.16.4 check src tests scriptsis clean; the suite and the coverage gate pass. Removingdockerfrom the gate'sneedsfailstest_the_gate_needs_every_other_job, and removingif: always()failstest_the_gate_reports_as_ci_and_always_runs.