Skip to content

Add GitHub Actions CI running the test suite - #2

Merged
chengmarc merged 1 commit into
mainfrom
chore/add-ci
Aug 27, 2026
Merged

chengmarc merged 1 commit into
mainfrom
chore/add-ci

Conversation

@chengmarc

Copy link
Copy Markdown
Collaborator

The repo has a test suite (tests/, 13 tests), a dev extra and a make test target, but nothing ran them automatically — there was no .github/ directory at all.

This adds a workflow that runs pytest on pushes to main and on every pull request.

Notes on the dependency install:

  • The suite is CPU-only and imports no network-backed modules (yfinance appears nowhere under tests/), so the job needs no secrets and makes no external data calls.
  • The default PyPI torch wheel on Linux bundles CUDA and drags in gigabytes of nvidia-* packages. The workflow installs the CPU build from the PyTorch index first, so the pinned torch==2.11.0 in requirements.txt is already satisfied by the time the rest resolves.
  • pip downloads are cached against requirements.txt.

Verified locally against this branch's tree: 13 passed in ~2s.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NvQ9oixKRbtFoM4YDYULwM

The repo has a test suite, a dev extra and a `make test` target, but
nothing ran them automatically. Add a workflow that installs the pinned
dependencies and runs pytest on pushes to main and on pull requests.

Installs the CPU torch build rather than the PyPI default, which bundles
CUDA and pulls gigabytes of nvidia packages the CPU-only suite never uses.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NvQ9oixKRbtFoM4YDYULwM
@chengmarc
chengmarc merged commit 85856af into main Aug 27, 2026
1 check passed
@chengmarc
chengmarc deleted the chore/add-ci branch August 27, 2026 04:17
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