📦 Move PyPI release workflow into the main workflow.

This ensures that any releases are fully tested before publication.

The workflow first builds the distribution files (sdist, wheel) before
using a deployment environment to publish these to PyPI, using the
GitHub actions OpenID support to authenticate with PyPI.
This commit is contained in:
Martijn Pieters
2023-05-16 17:54:16 +01:00
parent 4aa8060faa
commit 282fcc7cea
6 changed files with 377 additions and 39 deletions

View File

@@ -43,3 +43,11 @@ commands_pre =
poetry install --no-root --sync --with=linting
commands =
ruff check --fix .
[testenv:lint_distributions]
description = Lint distribution files with Twine
skip_install = true
commands_pre =
poetry install --no-root --sync --only=distributing
commands =
twine check dist/*