Skip to content

ci: discover contract tests by directory - #31

Merged
zhouaihui merged 1 commit into
inclusionAI:mainfrom
zhouaihui:ci/cpu-test-discovery
Nov 12, 2026
Merged

zhouaihui merged 1 commit into
inclusionAI:mainfrom
zhouaihui:ci/cpu-test-discovery

Conversation

@zhouaihui

Copy link
Copy Markdown
Collaborator

Outcome

New source and offline CPU tests are discovered automatically without editing the CI workflow. Move all 34 currently selected test modules into tests/source/ and tests/cpu/, update repository-root paths and recipe-runner references, and document where to add new tests.

Closes #30.

Verification

  • python -m pytest -q tests/source: 9 passed.
  • python -m pytest -q tests/cpu: 647 passed, plus 4 subtests.
  • Ruff, Python compilation, maintained documentation links, and git diff --check: passed.
  • Verified on Linux with Python 3.12.3, PyTorch 2.13.0+cu130 and pytest 9.1.1 in an existing isolated venv; GPUs hidden, offline mode, OMP/MKL threads set to 1. Hosted CI uses its own Python 3.11 / CPU dependency lane. GPU validation was not run.

Compatibility and provenance

Test organization only; runtime, configuration, checkpoint and export behavior are unchanged. Existing source headers and license notices are retained.

@Longxmas Longxmas left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zhouaihui
zhouaihui merged commit fd4dfa2 into inclusionAI:main Nov 12, 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.

Automatically discover CPU tests in CI

2 participants