ci: wire drift_check tests into validate.yml#63
Merged
Conversation
Adds a test-drift-check job to validate.yml that installs pytest from the new requirements-test.txt and runs pytest tests/ -v on every PR and push to main. The 9 tests in tests/test_required_workflows.py are pytest-discoverable as-is (functions named test_*). No conversion needed. The test file adds scripts/ to sys.path so no PYTHONPATH config is required. Signed-off-by: fOuttaMyPaint <tmhospitalitystrategies@gmail.com> Signed-off-by: fOuttaMyPaint <154358121+TMHSDigital@users.noreply.github.com>
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
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
test-drift-checkjob tovalidate.ymlthat runspytest tests/ -von every PR and push to main.requirements-test.txtwithpytest>=8.0,<9.0perstandards/testing.md.Background
PR #62 added the project's first tests (
tests/test_required_workflows.py, 9 tests). They were not wired into CI. This PR closes that gap.The tests are pytest-discoverable as-is (all functions are named
test_*). The test file addsscripts/tosys.pathso noPYTHONPATHconfig is required in the job.Changes
.github/workflows/validate.ymltest-drift-checkjobrequirements-test.txtpytest>=8.0,<9.0Notes
ci:prefix is not subject to the VERSION-bump gate.test-drift-checkis not added to the required-checks list (that is a repo settings change done separately if desired).