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

Setup PyPI publish action #116

Merged
merged 19 commits into from
Sep 19, 2024
Merged

Setup PyPI publish action #116

merged 19 commits into from
Sep 19, 2024

Conversation

jared321
Copy link
Contributor

@jared321 jared321 commented Sep 18, 2024

The basic work needed for Issue #94 is now done on this branch and is ready for merging into main in support of deploying the official v1.1.0 distributions to PyPI.

The publishing action built up here needs to be on main so that the action can only be triggered by publishing an official release. Therefore, the publication portion of the action is not yet written and will be developed directly on main after this branch is merged to main.

I did the following to review this PR

  • Inject a bug and see that the two altered actions fail as expected
    • Injected a bug that caused building the distributions to fail (7089898)
    • Injected a bug that caused tests to fail (3d26ce0)
  • Reviewed all changes
  • Reviewed the logs to confirm that the general testing action is now running the tests on a wheel installation
  • Reviewed the logs for the new action to confirm correctness
  • Downloaded the distributions created by the new action, installed them in a clean venv, checked the version, and ran the Taweret tests
    • Review contents of each (including presence of license) with tar tvfz <dist> and by inspecting installation in site-packages.
  • All GH actions passing

@jared321 jared321 self-assigned this Sep 18, 2024
Copy link

codecov bot commented Sep 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.62%. Comparing base (e4a7dff) to head (6295942).
Report is 20 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #116   +/-   ##
=======================================
  Coverage   66.62%   66.62%           
=======================================
  Files          14       14           
  Lines        1561     1561           
=======================================
  Hits         1040     1040           
  Misses        521      521           

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

I confirmed locally that builds end in error with non-zero exit code.  This is
to confirm that new package publishing action fails appropriately.
The previous bug did cause the GH publication action to fail during the
distribution build phase as expected.  The new bug should cause a failure when
testing the installed distributions.
The bug injected in the last commit did not lead to GH action failures because
the test command was not returning the exit code of the test() function.
The GH test actions all indicated the expected failure.  This should get all
actions passing again in preparation for the merge.
@jared321 jared321 requested a review from asemposki September 18, 2024 20:13
@jared321 jared321 changed the title DRAFT: Setup PyPI publish action Setup PyPI publish action Sep 18, 2024
@jared321 jared321 merged commit 3184aac into main Sep 19, 2024
32 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.

2 participants