ci: add backend unit tests to CI workflow#332
Conversation
Split the single integration-test job into two parallel jobs: - backend-unit-tests: runs pytest against tensormap-backend/tests/ - integration-tests: runs pytest against tests/integration/ Both jobs run on PRs to main with separate checkout and setup steps to ensure clean environments.
|
Polluted with 10+ unrelated commits. Clean version coming. |
|
Hey @ivantha, I apologize for the confusion with these PRs. The issue was that my local Git state had a polluted index with uncommitted changes from other branches — when I created the branches from what I thought was a clean origin/main, those branches ended up containing 10+ unrelated commits from the stale branch history. Both PRs showed the same 10 commits (augment, export, interpret, compare, tune) because those commits exist in main's merge history. I've since identified this and reset everything to a clean origin/main. I'm going to create fresh PRs with orphan branches — each containing exactly 1 commit with only its relevant files. They will have no shared commits and zero conflicts. Apologies for the noise! |
Summary
The CI
integration-tests.ymlworkflow only ran integration tests, leaving the 162 backend unit tests intensormap-backend/tests/completely untested in CI. This PR splits the singleintegration-testjob into two parallel jobs:backend-unit-tests: Runspytest tests/against the backend unit test suiteintegration-tests: Runspytest ../tests/integration/against the full integration suiteChanges
Integration TeststoTestsfor accuracybackend-unit-testsjob that runsuv run pytest tests/ -v --tb=shortmainwith separate checkout/setup for clean environmentsValidation
162 passed in 2.54s)Risk
Files Changed
.github/workflows/integration-tests.yml— split into two parallel test jobs