chore: containerize test runner #17

Closed
gravityfargo wants to merge 1 commit from chore/test-containerize into main
Owner

Summary

Adds `Dockerfile.test` (extends `code.modernleft.org/modernleft/athena-archive-ci:latest`) and migrates the Makefile test targets to run pytest inside the container so local runs match the CI environment exactly.

  • `make test` → `docker run`, fast suite (excludes `@slow` / `@largescale`)
  • `make test-slow` → bind-mounts `tests/data/` for the full suite
  • `build-test-image` is a layer-cached no-op when nothing changed

Other Make targets (`lint`, `format`, `mypy`, `publish`) remain host-native.

Verification

  • `make test` → 247 passed in container, ~5s

Test plan

  • CI green
  • Run `make test` on a fresh checkout
## Summary Adds \`Dockerfile.test\` (extends \`code.modernleft.org/modernleft/athena-archive-ci:latest\`) and migrates the Makefile test targets to run pytest inside the container so local runs match the CI environment exactly. - \`make test\` → \`docker run\`, fast suite (excludes \`@slow\` / \`@largescale\`) - \`make test-slow\` → bind-mounts \`tests/data/\` for the full suite - \`build-test-image\` is a layer-cached no-op when nothing changed Other Make targets (\`lint\`, \`format\`, \`mypy\`, \`publish\`) remain host-native. ## Verification - \`make test\` → 247 passed in container, ~5s ## Test plan - [ ] CI green - [ ] Run \`make test\` on a fresh checkout
chore: containerize test runner
Some checks failed
Run pytest tests / test (pull_request) Failing after 3m13s
a9e31341ed
Adds Dockerfile.test (extends code.modernleft.org/modernleft/athena-archive-ci:latest)
and migrates the Makefile test targets to run the suite inside the
container so local runs match CI exactly.

- make test: docker run, fast suite (excludes @slow / @largescale)
- make test-slow: bind-mounts tests/data/ for the full suite
- build-test-image is a layer-cached no-op when nothing changed
gravityfargo closed this pull request 2026-05-03 17:08:53 +00:00
Some checks failed
Run pytest tests / test (pull_request) Failing after 3m13s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ModernLeft/athena-file!17
No description provided.