Skip to content

Dev#23

Merged
JeremieGince merged 2 commits intomainfrom
dev
Apr 28, 2026
Merged

Dev#23
JeremieGince merged 2 commits intomainfrom
dev

Conversation

@JeremieGince
Copy link
Copy Markdown
Owner

@JeremieGince JeremieGince commented Apr 28, 2026

Description

This pull request updates the GitHub Actions workflow for testing and coverage reporting to improve reliability, accuracy, and maintainability. The main changes include restructuring how code coverage is collected and reported, enforcing stricter coverage thresholds, and ensuring that Windows tests only run after Ubuntu tests succeed.

Testing and Coverage Workflow Improvements:

  • The pytest command now enforces a minimum coverage threshold of 98% on pull requests from forks, adds branch coverage reporting, and increases the number of slowest test durations reported.
  • Coverage artifact upload is restricted to Python 3.11 runs on pull requests from the main repository, with a debug step to display coverage summary before upload.
  • A new Coverage job is introduced to post the coverage report as a comment on the pull request, running only after Ubuntu tests complete successfully and only for pull requests from the main repository.

Workflow Structure and Reliability Enhancements:

  • The Windows test job now depends on the Ubuntu test job and only runs if Ubuntu tests succeed, improving CI reliability and resource usage.

Checklist

Please complete the following checklist when submitting a PR. The PR will not be reviewed until all items are checked.

  • All new features include a unit test.
    Make sure that the tests passed and the coverage is
    sufficient by running pytest tests --cov=src --cov-report=term-missing.
  • All new functions and code are clearly documented.
  • The code is formatted using Black.
    You can do this by running black src tests.
  • The imports are sorted using isort.
    You can do this by running isort src tests.
  • The code is type-checked using Mypy.
    You can do this by running mypy src tests.

@github-actions
Copy link
Copy Markdown
Contributor

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
21 21 100% 98% 🟢

New Files

No new covered files...

Modified Files

No covered modified files...

updated for commit: 1658ef0 by action🐍

@JeremieGince JeremieGince merged commit 15eea1e into main Apr 28, 2026
9 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