Improve Publishing Workflow for Development #98
Closed
StefanGreve
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Preamble
As discovered in discussion #94, editing the workflow file responsible for the publishing process in a live environment can be a little bit disheartening if there are errors, to put it mildly.
Luckily for us, PyPI provides the facilities to test builds on https://test.pypi.org/. Documentation about that can be found here:
Requirements
Essentially, we need a workflow file that can be manually triggered with the
workflow_dispatch
event on GitHub actions which requires that the committer updates the__version__
variable insrc/anonfile/anonfile.py
tomajor.minor.patch-buildnumber
. This makes it much easier to test the release workflow during development, and avoids scenarios in which we have to publish a patch because something went wrong withpython-publish.yml
.The secrets for
test.pypi.org
need to be configured by @nstrydom2 through the repository settings panel. I would propose calling themTEST_PYPI_USERNAME
andTEST_PYPI_PASSWORD
, respectively.Planning Status
Scheduled for milestone
1.1.0
.Beta Was this translation helpful? Give feedback.
All reactions