Skip to content

✅ test: CI workflow running non-integration pytest suite - #50

Open
isabella618033 wants to merge 1 commit into
stagingfrom
ci/test-workflow
Open

✅ test: CI workflow running non-integration pytest suite#50
isabella618033 wants to merge 1 commit into
stagingfrom
ci/test-workflow

Conversation

@isabella618033

Copy link
Copy Markdown
Contributor

Summary

  • Adds .github/workflows/test.yml — runs pytest connito/test -m "not integration" on push/PR to master and staging, plus manual workflow_dispatch.
  • Installs CPU torch==2.10.0 (same version pin as requirements.txt, smaller wheel) so the GitHub-hosted runner doesn't need a GPU. The follow-up pip install -r requirements.txt sees torch already satisfied and skips it.
  • Pip cache keyed on requirements.txt — heavy transformers / hivemind layers reused across runs.
  • 30-min timeout, concurrency-cancel on repeat pushes to the same ref.

Integration tests (marked pytest.mark.integration) still require a real CUDA box per CLAUDE.md and are excluded — they continue to run locally only.

Picks up CLAUDE.md's note that pyproject.toml's testpaths is wrong, so the workflow points pytest at connito/test/ directly.

Test plan

  • First CI run completes within 8 min (cold cache)
  • Cached re-run completes within ~2 min
  • All 7 non-integration tests in connito/test/ pass on ubuntu-latest
  • Manual workflow_dispatch trigger works from the Actions tab

GitHub Actions runner on push/PR to master + staging. Installs the CPU
torch wheel (same version pin as requirements.txt, smaller wheel) so the
runner does not need a GPU, then runs `pytest connito/test -m "not
integration"` — integration tests still need a real CUDA box and run
locally only.

Pip cache is keyed on requirements.txt so subsequent runs reuse the
heavy transformers/hivemind layers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant