Skip to content

Add a smoke test workflow - #1

Merged
JaumeAP merged 3 commits into
masterfrom
ci/smoke-test
Oct 25, 2026
Merged

JaumeAP merged 3 commits into
masterfrom
ci/smoke-test

Conversation

@JaumeAP

@JaumeAP JaumeAP commented Oct 25, 2026

Copy link
Copy Markdown
Owner

The repository has no unit tests and the NMOS suites need a Node under test, so CI only checked style (Lint). This adds a Test workflow that:

  1. installs requirements.txt and pyright into a virtual environment;
  2. loads every test suite and runs --list-tests on it, which catches broken imports and suite registration;
  3. type checks the modules that are free of Pyright errors (the whole repository has 775, so a global check would always fail).

It runs on pull requests, on pushes to main or master, and by hand (workflow_dispatch).

Verified

The same commands run locally in a Python 3.9 virtual environment: 26 suites listed, 0 failures; Pyright 0 errors on the 10 files; the YAML parses.

Not verified

The workflow itself has not run on GitHub. ubuntu-latest ships a much newer Python than the 3.8 of the Dockerfile, so installing requirements.txt there is the likeliest failure. It runs no suite against a Node.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AkR6JBXMBPBA47L1yTBpXg

JaumeAP and others added 3 commits October 25, 2026 20:01
The repository has no unit tests and the NMOS suites need a Node under
test, so CI only checked style. Add a workflow that installs
requirements.txt, loads every test suite and lists its tests, which
catches broken imports and suite registration, and type checks the
modules that are free of Pyright errors.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AkR6JBXMBPBA47L1yTBpXg
nmos-test.py --list-suites ends with an empty line, which the smoke test
loop ran as a suite named "" and failed on.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AkR6JBXMBPBA47L1yTBpXg
On a clean install Pyright reports three things the local environment
hid: requests.compat.json is a private import (reportPrivateImportUsage),
junit_xml is typed so format_test_results() may return a TestSuite where
json.loads() needs a str, and Config.py imports the optional UserConfig
module, which does not exist in CI. Extend the existing suppressions,
assert the string, drop Config.py from the checked files, and pin Pyright
so a new release cannot turn the step red on its own.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AkR6JBXMBPBA47L1yTBpXg
@JaumeAP
JaumeAP merged commit 2788715 into master Oct 25, 2026
2 checks passed
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