Skip to content

ci: add lint + unit test workflow#3

Merged
Mathos34 merged 2 commits into
mainfrom
ci/cnn-compression-lab-workflow
Jun 5, 2026
Merged

ci: add lint + unit test workflow#3
Mathos34 merged 2 commits into
mainfrom
ci/cnn-compression-lab-workflow

Conversation

@Mathos34

@Mathos34 Mathos34 commented Jun 4, 2026

Copy link
Copy Markdown
Owner

Objective

Wire ruff + pytest into GitHub Actions so every push and PR gets a green check. Closes the CI wave on the 5 featured projects.

Changes

  • New .github/workflows/ci.yml: single job, ubuntu-latest, 15-minute timeout.
    • Python 3.11 with pip cache.
    • Installs the deps the test path needs: ruff, pytest, CPU torch (via the pytorch download index for the small wheel), and numpy.
    • Skips torchvision, matplotlib, tqdm: not used by tests/.
    • ruff check . then pytest -q tests/.

Validation

Risk

low. Pure additive workflow file. No source modification.

Out of scope

  • Installing torchvision in CI: only needed for the MNIST/CIFAR loaders in train.py, not for the unit tests.
  • Matrix over multiple Python versions.
  • README CI badge (separate follow-up PR after this workflow has a green run on main).

Tracked item: cnn-compression-lab CI workflow.

@Mathos34 Mathos34 merged commit 323ab22 into main Jun 5, 2026
1 check passed
@Mathos34 Mathos34 deleted the ci/cnn-compression-lab-workflow branch June 5, 2026 09:38
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