Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor tests and add tox #156

Merged
merged 5 commits into from
Jan 6, 2025
Merged

Refactor tests and add tox #156

merged 5 commits into from
Jan 6, 2025

Conversation

jpt-sn
Copy link
Collaborator

@jpt-sn jpt-sn commented Dec 31, 2024

Tox allows us to easily run pytest against multiple Python versions to ensure compatibility. With this PR, we identified that the core functionality of TapeAgents is also compatible with Python 3.11 and 3.12 (official support is 3.10). However, there are dependency issues when upgrading to Python 3.13.

The test refactoring aligns the tests with their required dependencies:

  • tests/ (TapeAgents core tests)
  • tests/finetune (Requires finetune-related dependencies)
  • tests/examples (Requires converters-related dependencies)

Mypy comes easily with tox, maybe pyright would be a better fit, that will be finish in another PR.

@jpt-sn jpt-sn requested a review from ollmer December 31, 2024 21:31
requirements.txt Outdated Show resolved Hide resolved
@jpt-sn jpt-sn requested a review from ollmer January 2, 2025 18:14
Copy link
Collaborator

@ollmer ollmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! We also should add mypy checks to our CI actions in a separate PR.

@jpt-sn jpt-sn merged commit c626df1 into main Jan 6, 2025
5 checks passed
@jpt-sn jpt-sn deleted the pkg-mng branch January 6, 2025 15:58
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.

2 participants