Issue #1: set up one Actions workflow with a custom Docker image #3
No reviewers
Labels
No labels
area/docs
area/editor
area/infra
area/perf
area/sync
area/ui
pr:3
pr:4
pr:6
pri/p0
pri/p1
pri/p2
size/big
size/smol
stat/backlog
stat/done
stat/qa
stat/todo
stat/triage
stat/wip
stat/wont
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
marmaduke/ninfer-4090!3
Loading…
Reference in a new issue
No description provided.
Delete branch "issue/1-set-up-one-actions-workflow-with-a-custo"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds a single GitHub Actions workflow that builds a custom Docker image and runs the pytest base test suite.
Changes
Dockerfile.test— custom image based onpython:3.11-slimwith CPU-only PyTorch, numpy, safetensors, and pytest. CPU-only torch keeps the image small (~200 MB vs ~2 GB) since the Python test suites (artifact framing, converter recipes, bench/serve corpus) exercise host-side logic only..github/workflows/ci.yml— one workflow (pytest-base) that buildsDockerfile.testand runs the pytest base suite. Triggers on push and PR to the default branch.How to test
Or locally without Docker:
The entrypoint in
Dockerfile.testalready targets the correct test paths, sodocker run --rm ninfer-test:ciruns the full suite with no extra arguments.42b5dd1bdcto1e7bd3a0c4