Add lightweight tests and CI automation#5
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install torch --index-url https://download.pytorch.org/whl/cpu | ||
| pip install numpy pandas scikit-learn | ||
| pip install -r requirements-dev.txt |
There was a problem hiding this comment.
Install runtime requirements before running tests
The workflow only installs torch, numpy, pandas, scikit‑learn and the dev tools, but the added tests import modules such as Architecture/partial-rope-full-rope.py, which executes from transformers import AutoTokenizer and other dependencies that live in requirements.txt. Because those packages aren’t installed here, pytest will raise ModuleNotFoundError before any test runs, causing the CI job to fail deterministically. Install the regular project requirements (or otherwise skip the tests when optional dependencies are missing) before executing linting and pytest.
Useful? React with 👍 / 👎.
Summary
Testing
https://chatgpt.com/codex/tasks/task_e_68f516bb66e8832f9b8cc27e12f61e68