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

Enable parallel testing and update dev setup with Rye #12

Merged
merged 1 commit into from
Jan 5, 2025

Conversation

jacksonpradolima
Copy link
Owner

Contents of the Pull Request

Description

This pull request introduces enhancements to the project’s testing, dependency management, and documentation processes. It focuses on improving test efficiency, modernizing the developer environment setup, and ensuring version consistency across files. The key updates include enabling parallel test execution, refining dependency management using rye, and updating relevant documentation for clarity.


Stacked PR Chains (Optional)

No stacked PR chains are associated with this pull request.


How Has This Been Tested? (Required)

Tests Performed

The following tests were conducted to verify the changes:

  • Verified parallel test execution using pytest-xdist.
  • Validated that rye sync successfully sets up the environment.
  • Ensured all existing and new tests pass locally without issues.

Test Configuration

  • Firmware version: N/A
  • Hardware: N/A
  • Toolchain: Python 3.12+
  • SDK: N/A

Other Notes

Key Changes

  1. Testing Enhancements

    • Added pytest-xdist for parallel test execution.
    • Updated the rye run test script to include pytest -n auto.
  2. Dependency Management

    • Added pytest-xdist and its dependency execnet to pyproject.toml and requirements-dev.lock.
    • Updated ruff to version 0.8.6.
  3. Documentation Updates

    • Improved README to include rye sync for setting up the environment.
    • Added instructions for adding dependencies via rye.
  4. Version Updates

    • Updated the project version to 2.3.0 across files (pyproject.toml, CITATION.cff, and LICENSE).
    • Updated the copyright year to 2025.

Added `pytest-xdist` for parallel test execution, improving test performance. Updated the development setup to leverage Rye for dependency management, replacing `setup.py` with `rye sync`. Enhanced documentation to reflect these changes and streamlined developer workflows.
Copy link

sonarqubecloud bot commented Jan 5, 2025

@jacksonpradolima jacksonpradolima merged commit afd8186 into master Jan 5, 2025
5 checks passed
@jacksonpradolima jacksonpradolima deleted the feat/enhancements branch January 5, 2025 19:40
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