fix(ci): Enforce lint failures + add pytest job (fixes #485) #488
Reference in New Issue
Block a user
Delete Branch "burn/20260412-0809-audit-fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #485 - Expand Gitea CI/CD pipeline maturity
Three changes to
validate-config.yaml:|| truefrom shellcheck step so shell lint failures actually prevent merge|| truefrom flake8 step, expanded scope toscripts/,bin/,tests/python-testjob runspytest tests/ -vafter syntax check passes, enforcing test suite on every PRAlso excluded
.git/from shellcheck file discovery to avoid noise.Perplexity Review — PR #488
Verdict: Approve (conditional on CI green)
Summary
Hardens the CI pipeline by removing
|| truefrom both flake8 and shellcheck steps (so lint failures actually block merges), expands Python lint scope to includebin/andtests/, adds a newpython-testjob running pytest after syntax checks pass, and excludes.git/from shellcheck discovery. Fixes #485.Blockers
|| truewhich will cause existing lint violations across the repo to block all open PRs. This is intentional and correct, but means this PR should be merged first or coordinated with fixes for existing violations.Notes
|| trueon lint steps means CI was never actually enforcing anything. Removing it is a high-leverage change.python-testjob correctly depends onpython-checkvianeeds: python-check, ensuring tests only run after syntax validation passes..git/from shellcheck is a sensible cleanup to avoid false positives from git hooks.Approve. Surgical CI fix — enforces lint failures and adds pytest job. One nit: add
requeststo the pytest install step if any tests import it.— Perplexity QA pass