Skip to content

pyproject toml file update and add github action for pytests#35

Merged
oleks-dev merged 1 commit intomainfrom
project_and_tests
Sep 12, 2025
Merged

pyproject toml file update and add github action for pytests#35
oleks-dev merged 1 commit intomainfrom
project_and_tests

Conversation

@oleks-dev
Copy link
Copy Markdown
Owner

@oleks-dev oleks-dev commented Sep 10, 2025

1. New GitHub Actions Workflow (pytest-and-coverage.yaml)

  • Creates a CI/CD pipeline for testing and code coverage
  • Runs tests across Python 3.9, 3.10, and 3.11 versions
  • Generates test reports and coverage data
  • Uploads artifacts (coverage reports and test results) only for Python 3.11 to avoid duplicates
  • Generates and publishes coverage badges and test status badges to a GitHub Pages branch (only for Python 3.11 builds)
  • Includes badge generation using coverage-badge and anybadge tools
  • Publishes badges to a badges/ directory on the gh-pages branch when changes are made to the main branch

2. README.md Updates

  • Added two new badges to visualize test status and code coverage:
    • ![Tests](https://oleks-dev.github.io/prich/badges/tests.svg)
    • ![Coverage](https://oleks-dev.github.io/prich/badges/coverage.svg)
  • Added python 3.10+ minimum requirement

3. pyproject.toml Changes

  • Removed wheel from build dependencies (now only requires setuptools>=61.0)
  • Changed license declaration from inline text to a file (LICENSE)
  • Updated minimum Python version requirement from >=3.8 to >=3.10
  • Added dependency breaking changes versions max
  • Removed the console_scripts entry point section (possibly deprecated or moved elsewhere)

4. Small prich changes

  • Tests modified to work properly with GitHub Actions and other machines
  • mock_paths modified to not create prich folders and some logic extracted to a new testst/utils/utils.py file
  • Validation check simplified to remove code duplication

Key Impacts

  • The new workflow enables comprehensive test coverage analysis and automated badge generation for Python 3.11.
  • The pyproject.toml changes simplify the project configuration by removing redundant entry points and standardizing coverage reporting.

@oleks-dev oleks-dev force-pushed the project_and_tests branch 19 times, most recently from f88e616 to 5f36f8e Compare September 12, 2025 22:44
@oleks-dev oleks-dev merged commit b624f96 into main Sep 12, 2025
6 checks passed
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