Skip to content

Release using GitHub actions - #58

Merged
diazona merged 3 commits into
masterfrom
release-using-github-actions/1/dev
Jan 26, 2023
Merged

Release using GitHub actions#58
diazona merged 3 commits into
masterfrom
release-using-github-actions/1/dev

Conversation

@diazona

@diazona diazona commented Jan 22, 2023

Copy link
Copy Markdown
Contributor

This adds a workflow for pushing to PyPI.

This commit updates the pre-commit configuration to use a newer version
of the GitHub actions linter, which gives better error messages for
workflows involving environments.
In this commit I'm adding a new workflow which will build distributable
packages for pytest-localserver and upload them to PyPI and Test PyPI.
The uploads are treated as deployments, so they will not run until
someone manually approves them.

A future enhancement I'd like to make is to actually run tests using
the same package that is going to be uploaded. That's going to involve
tweaking tox to install from a prebuilt package rather than directly
from the source code, so it will take some time to figure that out.
@diazona
diazona force-pushed the release-using-github-actions/1/dev branch from 0ee01bc to 83f3542 Compare January 23, 2023 03:31
@diazona
diazona temporarily deployed to test-pypi January 23, 2023 04:14 — with GitHub Actions Inactive
@diazona diazona added this to the 0.7.1 milestone Jan 23, 2023
@diazona
diazona marked this pull request as ready for review January 23, 2023 04:23
@diazona
diazona requested review from coordt and redtoad January 23, 2023 04:49
@diazona

diazona commented Jan 23, 2023

Copy link
Copy Markdown
Contributor Author

@coordt Would you mind rechecking this? I went through several different iterations of this while testing, some of which included changes not intended for merging into master (like deleting the entire test workflow for a little while 😆), and I'd like to get a second pair of eyes to confirm that I didn't leave in a bad change.

Now that we have an automatic flow for making releases and uploading to
PyPI (and Test PyPI), I'm updating the instructions in the README file
to reflect it instead of the manual release flow that we used to use.
@diazona
diazona force-pushed the release-using-github-actions/1/dev branch from 2d4bbe0 to 3212bc2 Compare January 23, 2023 20:50
@diazona

diazona commented Jan 26, 2023

Copy link
Copy Markdown
Contributor Author

Hopefully I can trust myself 3 days later to ensure nothing untoward snuck in here 😄 I'll merge now to prepare for a final release tomorrow.

@diazona
diazona merged commit 4a3b828 into master Jan 26, 2023
@diazona
diazona deleted the release-using-github-actions/1/dev branch January 26, 2023 21:34
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