Skip to content

ci: add syntax/install gates and advisory lint workflow#1

Open
reversesingularity wants to merge 2 commits into
001-database-schemafrom
modernize/ci-workflow
Open

ci: add syntax/install gates and advisory lint workflow#1
reversesingularity wants to merge 2 commits into
001-database-schemafrom
modernize/ci-workflow

Conversation

@reversesingularity

Copy link
Copy Markdown
Owner

Summary

Adds the first code-quality CI to this repository (existing workflows are scheduled data jobs only). Deliberately zero-runtime-risk: no application behavior changes.

Changes

  • .github/workflows/ci.yml on ubuntu with two hard gatespython -m compileall app (syntax) and uv pip install -e . (dependency resolvability) — plus two advisory steps (ruff check, pytest --collect-only) marked continue-on-error until the lint baseline is cleaned and the PostgreSQL-backed test suite (pytest-postgresql) gets service wiring.
  • One-character fix in app/ml/lstm_model.py: class EarthquakeL STM:class EarthquakeLSTM:. The file is orphaned (grep: nothing imports it) and could never be parsed, so this cannot change runtime behavior — it exists solely so the syntax gate can be a hard gate.

Verification

  • python -m compileall -q backend/app — green locally after the fix (previously failed on the syntax error).

Risk

Minimal — CI plus a syntax repair in dead code. The live Railway deployment is untouched.

Rollback

Revert the merge commit.

Also fixes the space in 'class EarthquakeL STM' in the orphaned
app/ml/lstm_model.py (imported by nothing; could never parse) so the
compileall gate passes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant