feat: Set up comprehensive Python testing infrastructure#2
Open
llbbl wants to merge 1 commit intoikergarcia1996:mainfrom
Open
feat: Set up comprehensive Python testing infrastructure#2llbbl wants to merge 1 commit intoikergarcia1996:mainfrom
llbbl wants to merge 1 commit intoikergarcia1996:mainfrom
Conversation
- Add Poetry package manager with pyproject.toml configuration - Migrate dependencies from environment.yml to Poetry format - Configure pytest with coverage reporting and custom markers - Set up testing directory structure (tests/, unit/, integration/) - Create shared fixtures in conftest.py for common test utilities - Add development scripts for running tests (poetry run test/tests) - Update .gitignore with testing and IDE-related entries - Include validation tests to verify infrastructure setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Set Up Python Testing Infrastructure
Summary
This PR establishes a comprehensive testing infrastructure for the MetaVec project, migrating from conda-based dependency management to Poetry and setting up a complete testing framework.
Changes Made
Package Management
pyproject.tomlwith full dependency specificationenvironment.ymlto Poetry format with Python 3.11 compatibilityTesting Framework
unit,integration,slow)Directory Structure
tests/- Root testing directorytests/unit/- Unit teststests/integration/- Integration tests__init__.pyfilesTesting Utilities
tests/conftest.py:Development Workflow
poetry run test- Run all testspoetry run tests- Alternative commandTesting Instructions
Installation
Running Tests
Coverage Reports
htmlcov/directorycoverage.xmlfor CI integrationNotes
Validation
All validation tests pass successfully: