Add CI workflow to run automated tests#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: | | ||
| pip install -r "Memory LLM/requirements-dev.txt" | ||
|
|
||
| - name: Run test suite | ||
| run: | | ||
| python -m pytest -c "Memory LLM/pyproject.toml" |
There was a problem hiding this comment.
Install project before running tests in CI
The workflow installs only requirements-dev.txt and then runs python -m pytest, but the package lives under Memory LLM/mem_llm and is not on PYTHONPATH in a fresh runner unless it is installed. As a result, the tests will fail immediately with ModuleNotFoundError: mem_llm instead of exercising the suite. Add a step such as pip install -e "Memory LLM" or change into the package directory before invoking pytest so the module can be imported.
Useful? React with 👍 / 👎.
Summary
Testing
https://chatgpt.com/codex/tasks/task_e_68f642ed1adc832fbf832cf1c9f9331c