Closed almutlue closed 3 months ago
Good point - I added a run-tests
job that imports the test workflow to both workflows.
Both the building and publishing jobs depend on the test job to make sure that it fails early enough.
Publishing fails in the current test-publish action because the current version already exists at test-pypi. To solve this, it is suggested to make dev releases on pypi (see https://github.com/pypi/warehouse/issues/726), but I thought it is not necessary, because the changes should not affect publishing?
Scope:
Two new github action workflows with 2 jobs each:
poetry-publish
: 1. build modos-api and 2. publish at pypi, triggered on published releasespoetry-test-publish
: 1. build modos-api and 2. publish at test-pypi, manually triggered by workflow dispatchThe publishing job uses trusted publisher management for authentication, which requires write permission. To not elevate privileges building and publishing were separated into two different ci-jobs as recommended.
Limitations:
So far only
poetry-test-publish
was run (see output) and tested. Both workflows are build analogous, but I think we have to wait for the next release to checkpoetry-publish
?