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

Update CI workflows, update assert_winfo_similar #218

Merged
merged 4 commits into from
Jul 5, 2024

Conversation

HexDecimal
Copy link
Collaborator

Updated outdated actions in the CI workflow. All CI warnings should be resolved.

I moved the deployment job to the main CI workflow to ensure that deployed wheels have the exact same test data used for tests by the CI.

I've taken some steps to support reproducible test data. This is incomplete and will take a lot of effort to finish if it's possible in the first place.

Added Python 3.12 and 3.13 to tests.

I've removed the deprecated MacOS 11 runners before support for them ends entirely.

I was unable to add MacOS 13 because of failing tests.

While I was working on this PR, setuptools had an update which broke assert_winfo_similar. The "Generator" field can now be "setuptools <version>" instead of "bdist_wheel <version>" since setuptools 70.1. I've decided to refactor the entire function. This can be a separate PR if necessary, but all future tests are going to fail with AssertionError: assert 'bdist_wheel (70.1.0)' == 'setuptools (70.1.0)' until this is merged.

Fix winfo check for setuptools>=70.1

Generator field can be "setuptools <version>" instead of "bdist_wheel <version>" since setuptools 70.1.

Improve assertion check to give more info when the assertion fails.

Lengthen names, add type hinting, add pathlib support, add docstrings.
Update pre-commit hooks.

Move deployment to main CI workflow.
Mainly to ensure that the deployed wheel is the exact wheel used for tests.

Added Python 3.12 to tests.

Codecov is more strict and will fail for forks outside of PR's

Report if test data is reproducible and committed in CI

Add coverage.xml and downloads/ to .gitignore

Attempt to make test data more reproducible using SOURCE_DATE_EPOCH and PYTHONHASHSEED
Copy link

codecov bot commented Jun 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.93%. Comparing base (eb8a5bb) to head (85360b7).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #218   +/-   ##
=======================================
  Coverage   96.93%   96.93%           
=======================================
  Files          16       16           
  Lines        1307     1307           
=======================================
  Hits         1267     1267           
  Misses         40       40           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Improve upload speed by removing unnecessary compressing of already compressed files.
Other uploads are left with default compression levels.
@HexDecimal HexDecimal merged commit e7ad649 into matthew-brett:master Jul 5, 2024
16 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