Skip to content

Conversation

@depocoder
Copy link
Owner

@depocoder depocoder commented Sep 6, 2025

πŸŽ‰ Merge Request Summary – Improve CI, Coverage & Dev Tools

πŸš€ Overview

This MR introduces significant improvements to the CI pipeline, test coverage automation, and development tooling.
It adds automatic coverage reporting, cleans up configuration files, and enhances the local development experience.


🧩 Key Changes

πŸ§ͺ CI & Test Coverage

  • Updated .github/workflows/lint-and-test.yaml:
    • Added working-directory to simplify test execution 🧭
    • Integrated JUnit XML + text coverage reports (pytest.xml, pytest-coverage.txt) πŸ“Š
    • Introduced the MishaKav/pytest-coverage-comment GitHub Action to auto-post coverage reports πŸ’¬
    • Removed the manual cd backend step

🧹 Repository Maintenance

  • Updated .gitignore:
    • Excluded new coverage output files (pytest-coverage.txt, pytest.xml) 🧾

🧰 VS Code & Dev Configs

  • Changed file permissions on .vscode/launch.json and .vscode/settings.json β†’ now executable (755) βš™οΈ
  • Adjusted VS Code launch settings for better local debugging and linting ✨

πŸ§‘β€πŸ’» Backend Updates

  • Added or refined:
    • .flake8 β†’ linter rules tuned for backend consistency 🧼
    • backend/pyproject.toml β†’ dependency & tool updates
    • backend/generate_password_hash.py β†’ new or refactored password utility πŸ”
    • backend/yet_another_calendar/log.py β†’ improved logging structure and format πŸͺ΅
  • Updated backend/README.md to include placeholders for dynamic coverage comment πŸ“

πŸ“Š Stats

  • Files changed: 33
  • Lines added: 1,932 βž•
  • Lines removed: 234 βž–

βœ… Why It Matters

  • 🧠 Smarter CI with automatic test coverage reports
  • 🧹 Cleaner repo and consistent configs
  • πŸ’» Improved developer experience with better linting and VS Code setup
  • πŸ”’ Enhanced testing and code quality visibility

🌟 Summary

This MR brings the project’s developer workflow to the next level πŸš€ β€”
making testing, coverage, and automation smoother and more maintainable across environments.

depocoder and others added 30 commits September 6, 2025 23:00
- Added pytest coverage reporting to the GitHub Actions workflow, including output to a text file and JUnit XML.
- Updated README.md to include a placeholder for pytest coverage comments, which will be dynamically populated by the workflow.
- Integrated a step to commit changes to README.md after coverage updates, ensuring documentation stays current.
… step

- Corrected the indentation for the "Update README" step in the lint-and-test workflow to ensure proper execution.
- This change enhances the clarity and functionality of the workflow, maintaining accurate coverage reporting in the README.md.
…erage

- Adjusted the path for pytest coverage output in the GitHub Actions workflow to ensure correct file location.
- Added pytest coverage output files to .gitignore to prevent unnecessary tracking in the repository.
- Removed unnecessary line from README.md.
- Adjusted paths for pytest coverage output and JUnit XML in the GitHub Actions workflow to reflect the correct directory structure.
- Replaced the manual README update step with the pytest-coverage-comment action for automated coverage reporting.
- Streamlined the workflow by removing unnecessary commit steps, enhancing efficiency in coverage updates.
- Adjusted paths for pytest coverage output and JUnit XML to reflect the correct directory structure.
- Added a step to update the README.md with the latest coverage information and commit the changes automatically.
- Introduced an ID for the pytest coverage comment step to facilitate future reference and enhancements in the workflow.
- This change improves the clarity and maintainability of the GitHub Actions configuration.
- Added placeholders for pytest coverage comments in both README.md and backend/README.md.
- Adjusted the GitHub Actions workflow to update the backend README with the latest coverage information, ensuring accurate documentation.
- Updated the pytest command to generate an XML coverage report, improving the coverage data output.
- Modified the coverage comment step to reference the new XML coverage report, ensuring accurate integration with the coverage comment action.
- Simplified the pytest command in the workflow by removing the `cd` command and using the `working-directory` attribute.
- Enhanced readability of the pytest command by formatting it across multiple lines, improving maintainability.
…kflow

- Changed the file pattern from README.md to backend/README.md to ensure the correct README is updated with the latest coverage information.
- Introduced a coverage path prefix for the pytest coverage report to ensure accurate path resolution in the generated reports.
- Updated the coverage path prefix to include a trailing slash for accurate path resolution in the pytest coverage report.
@depocoder depocoder merged commit 3e768d4 into main Oct 6, 2025
1 check passed
@depocoder depocoder deleted the feature/test_pytest_coverage branch October 6, 2025 09:18
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