Skip to content

Add CI that catches syntax errors and undefined names - #2

Merged
Song-Seng-Hun merged 1 commit into
mainfrom
claude/zealous-darwin-5a8kld
Nov 9, 2026
Merged

Song-Seng-Hun merged 1 commit into
mainfrom
claude/zealous-darwin-5a8kld

Conversation

@Song-Seng-Hun

Copy link
Copy Markdown
Owner

What

Adds .github/workflows/ci.yml. The nodes need ROS 2, a microphone, a camera and the OpenAI API, so there are no tests to run in CI. The workflow does two things:

  1. Compiles every Python file (python -m compileall).
  2. Runs flake8 with only the checks for errors that crash at run time: E9, F63, F7 and F821–F823 (syntax errors and undefined names).

F824 (a global statement for a name that is never assigned) is left out. It shows up once in stt_pkg/stt_sub.py and does not change behaviour.

Notebooks (.ipynb) are not checked.

Checked locally

  • Both steps pass on a clean copy of main (Python 3.13, flake8 7.5.0).
  • actionlint reports nothing.

Generated by Claude Code

The code here needs hardware or large models, so there are no tests to run.
The workflow compiles every Python file and runs flake8 with only the checks
for errors that crash at run time (E9, F63, F7, F821-F823). --isolated keeps
flake8 from reading any [flake8] section in setup.cfg.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XLsKTxhmmkjAUN94rK6Kps
@Song-Seng-Hun
Song-Seng-Hun marked this pull request as ready for review November 9, 2026 23:14
@Song-Seng-Hun
Song-Seng-Hun merged commit c949b1f into main Nov 9, 2026
1 check passed
@Song-Seng-Hun
Song-Seng-Hun deleted the claude/zealous-darwin-5a8kld branch November 9, 2026 23:15
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.

2 participants