Skip to content

Attempt to make codecov less important #1203

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

Open
wants to merge 39 commits into
base: main
Choose a base branch
from
Open

Conversation

kingbuzzman
Copy link
Contributor

@kingbuzzman kingbuzzman commented May 26, 2025

Depends on #1202
Related to #1201 -- had to close it due to CI not running

This all started because yesterday codecov was having issues, and p!$#ed me off...

This PR aims to reduce the emphasis on Codecov by adjusting coverage exclusions in pyproject.toml and modifying the CI workflow to handle coverage reporting differently.

  • Update pyproject.toml by excluding "pytest_django/_version.py" in both run and report configurations.
  • Revise the CI workflow to use ubuntu-latest, update Tox versions, and introduce dedicated coverage reporting and artifact handling steps.

Miscellaneous:

  • CI now runs on all branches -- instead of those that were pointing to main only
  • Updated tox version since python 3.8 is gone!
  • Added html and the main coverage file to the archive
  • Adds markdown details of coverage in the CI summary
  • Moves the CI matrix up -- personal thing, i can move it back if its too many changes
image

@kingbuzzman kingbuzzman marked this pull request as draft May 26, 2025 16:26
@kingbuzzman kingbuzzman changed the base branch from main to dev/remote-py38 May 26, 2025 16:39
@kingbuzzman kingbuzzman changed the base branch from dev/remote-py38 to main May 26, 2025 16:44
@kingbuzzman kingbuzzman changed the base branch from main to dev/remote-py38 May 26, 2025 16:46
Base automatically changed from dev/remote-py38 to main May 26, 2025 21:35
@kingbuzzman kingbuzzman requested review from bluetech and Copilot May 27, 2025 06:31
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR aims to reduce the emphasis on Codecov by adjusting coverage exclusions in pyproject.toml and modifying the CI workflow to handle coverage reporting differently.

  • Update pyproject.toml by excluding "pytest_django/_version.py" in both run and report configurations.
  • Revise the CI workflow to use ubuntu-latest, update Tox versions, and introduce dedicated coverage reporting and artifact handling steps.

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
pyproject.toml Adds omit rules for excluding pytest_django/_version.py to adjust coverage.
.github/workflows/main.yml Updates runner versions, refactors test steps, and adds a new coverage reporting job.
Files not reviewed (1)
  • tox.ini: Language not supported
Comments suppressed due to low confidence (1)

.github/workflows/main.yml:23

  • [nitpick] Changing the runner from a fixed version (ubuntu-24.04) to ubuntu-latest may introduce variability in your CI environment; ensure this change is aligned with your stability requirements.
+    runs-on: ubuntu-latest

@kingbuzzman kingbuzzman marked this pull request as ready for review May 27, 2025 06:59
@kingbuzzman kingbuzzman requested a review from Copilot May 27, 2025 06:59
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR reduces reliance on Codecov by updating coverage exclusions and restructuring the CI workflow for more granular coverage artifact handling.

  • Exclude the version file from coverage reports
  • Switch CI to ubuntu-latest, update Tox versions, and separate test and coverage-reporting jobs
  • Archive individual coverage artifacts and merge them in a dedicated report step

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 6 comments.

File Description
pyproject.toml Added omit entry to exclude _version.py from coverage runs
.github/workflows/main.yml Updated triggers, runner, Tox versions, and introduced a report-coverage job
Files not reviewed (1)
  • tox.ini: Language not supported

@kingbuzzman
Copy link
Contributor Author

@bluetech what do you think of this?

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